Skip to main content
Glama
teyepe

systembridge-mcp

by teyepe

map_palette_to_semantics

Map generated palette scales to semantic tokens using built-in presets or custom rules. Write output to disk with configurable merge and split strategies.

Instructions

Map generated palette scales to semantic tokens using configurable rules. Includes built-in presets for light-mode and dark-mode mappings. Can write output to disk with merge and split strategies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rulesNoCustom mapping rules as JSON array. Each rule: {"propertyClass":"background","intent":"accent","paletteScale":"brand","defaultStep":500}
dryRunNoShow what would be written without actually writing. Default: false.
presetNoUse a built-in mapping preset. Default: light-mode.
statesNoComma-separated additional states, e.g. 'hover,active,focus,disabled'.
paletteYesThe palette JSON from generate_palette (the 'palette' field from the result).
outputDirNoDirectory to write generated files to (relative to project root). If omitted, tokens are returned inline.
uxContextsNoComma-separated UX contexts to generate for, e.g. 'action,input,surface'. If omitted, generates only global (context-free) tokens.
mergeStrategyNoHow to handle existing files. Default: additive.
splitStrategyNoHow to split tokens across files. Default: by-context.
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries full burden. It reveals that output can be written to disk and mentions merge/split strategies, but lacks details on potential destructive actions (e.g., file overwrite behavior, backup, or rollback). Some behavioral info is present but incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each providing critical information: the core mapping function, built-in presets, and file output capabilities. No redundant or vague phrasing. Front-loaded with the main purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 9 parameters and no output schema, the description should cover return format when not writing to disk, error conditions, or a high-level mapping process. It does not explain the inline output structure or prerequisites (e.g., palette must come from generate_palette). Functional but leaves research questions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (baseline 3). The description adds value by explaining presets for light/dark modes, the ability to write to disk as an alternative to inline output, and the merge/split strategies. This goes beyond the bare schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: mapping generated palette scales to semantic tokens. It mentions configurable rules, built-in presets for light/dark modes, and file output capabilities. This distinguishes it from siblings like generate_palette (generates palette) and transform_tokens (general token transformation).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance is provided. The description implies use after palette generation but doesn't compare to alternatives like transform_tokens or analyze_coverage. The context of many sibling tools makes this gap more significant.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/teyepe/systembridge-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server