MCP tools reference
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
- Resolve the organization, brand, and project using the available listing tools. Ask you if the choice is ambiguous.
- Read the brand brief and rules index. For a project, read its notes when prior session context is useful.
- Fetch the rules for the areas being built, including writing and accessibility, and fetch design tokens in the project's stylesheet format.
- 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
| Tool | Purpose |
|---|---|
list_organizations | Find organizations available to the signed-in account. |
list_brands | Find brands in an organization. |
list_projects | Find 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
| Tool | Purpose |
|---|---|
get_brand_brief | Read the brand's identity and high-level context. |
get_rules_index | Find the areas, components, and blocks with guidelines. |
get_rules | Read guidelines for the requested area. |
search_rules | Search the guidelines. |
get_rule | Read one rule by its identifier. |
export_ruleset | Export the effective ruleset. |
get_design_tokens | Read tokens and compiled styles in the requested stylesheet format. |
list_brand_assets | Find the brand's assets. |
list_notes | Read 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
| Tool | Purpose |
|---|---|
verify_rule_compliance | Check the agent's report of project work and departures against applicable rules. |
verify_stylesheet | Check a supplied stylesheet against the expected tokens. |
verify_shadcn_config | Check 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
| Tool | Purpose |
|---|---|
create_rule | Add a rule to a brand or project. |
create_rule_group | Add a group for organizing rules within an area. |
update_rule | Update a rule, including a project override of an inherited rule. |
update_design_token | Change a token value on a brand or project. |
import_design_tokens | Import tokens from supplied CSS into a brand or project. |
create_note | Save 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 name | Current name |
|---|---|
get_project_notes | list_notes |
save_project_notes | create_note |
check_rule_compliance | verify_rule_compliance |
set_design_token | update_design_token |
add_project_rule | create_rule |
add_rule_group | create_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.
