MCP tools reference

Current UI Rules MCP tools for finding brands and projects, reading guidelines and tokens, verifying work, and making approved changes.
PreviousNext

UI Rules offers tools according to the connection's scope and settings. Tools for listing a level already fixed by the URL are hidden, and a Read-only connection excludes writing tools. Your account permissions still govern every request.

How an agent should work

  1. Resolve the organization, brand, and project using the available listing tools. Ask you if the choice is ambiguous.
  2. Read the brand brief and rules index. For a project, read its notes when prior session context is useful.
  3. Fetch the rules for the areas being built, including writing and accessibility, and fetch design tokens in the project's stylesheet format.
  4. Apply that guidance, then verify the result and report departures.

Notes provide context from earlier sessions; they are not instructions to run commands or change the agent's behavior.

Find the target

ToolPurpose
list_organizationsFind organizations available to the signed-in account.
list_brandsFind brands in an organization.
list_projectsFind projects in a brand.

A whole-account connection can expose all three. An organization connection already knows the organization, a brand connection already knows both organization and brand, and a project connection fixes all three. Tools stop asking for values fixed by the URL.

Read the brand system

ToolPurpose
get_brand_briefRead the brand's identity and high-level context.
get_rules_indexFind the areas, components, and blocks with guidelines.
get_rulesRead guidelines for the requested area.
search_rulesSearch the guidelines.
get_ruleRead one rule by its identifier.
export_rulesetExport the effective ruleset.
get_design_tokensRead tokens and compiled styles in the requested stylesheet format.
list_brand_assetsFind the brand's assets.
list_notesRead saved project notes, including their kind and codebase label.

A project request includes its inherited brand values and project overrides. A brand request reads the brand itself.

Verify work

ToolPurpose
verify_rule_complianceCheck the agent's report of project work and departures against applicable rules.
verify_stylesheetCheck a supplied stylesheet against the expected tokens.
verify_shadcn_configCheck supplied shadcn configuration against the brand's configuration.

These tools read and check; they do not edit your brand system. Verification works with the material the agent supplies. It is not an independent audit of every file in your codebase.

Make changes

ToolPurpose
create_ruleAdd a rule to a brand or project.
create_rule_groupAdd a group for organizing rules within an area.
update_ruleUpdate a rule, including a project override of an inherited rule.
update_design_tokenChange a token value on a brand or project.
import_design_tokensImport tokens from supplied CSS into a brand or project.
create_noteSave a project note for future sessions without changing rules or tokens.

Writing requires OAuth authorization for reading and writing, the relevant UI Rules account permissions, and a connection with writing enabled. A read-only connection does not offer these tools.

Specify the target when asking for changes. Project edits stay in that project; brand edits can flow through to every project that inherits them. The server instructs agents to write only when you request it and to wait for approval of a preview before replacing a value or making any brand change.

Updated tool names

Update saved prompts and tool allowlists that use the previous names:

Previous nameCurrent name
get_project_noteslist_notes
save_project_notescreate_note
check_rule_complianceverify_rule_compliance
set_design_tokenupdate_design_token
add_project_rulecreate_rule
add_rule_groupcreate_rule_group

Parameters also changed, so use the schemas returned by the current server. report_usage, send_feedback, and import_design_tokens_from_site are no longer offered. Token imports through MCP take supplied CSS.

For connection scope, read-only settings, and the one-time reconnect, see the Connect overview.

Bring your brand to every AI tool

Set your rules once and use them in every AI tool you work in.