Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

generate-design-tokens

Export color palettes as W3C Design Tokens, CSS custom properties, or Tailwind config. Convert named colors into reusable design tokens for themes and implementation.

Instructions

Export colors as W3C Design Tokens, CSS custom properties, or Tailwind config

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "colors": "<colors>"
    },
    "name": "generate-design-tokens"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorsYesColors to include as design tokens
formatNoOutput formatw3c
prefixNoToken name prefixcolor

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, yet it only restates the output formats. It does not say whether the result is returned as a string or written to disk, whether generation has any side effects, or whether input colors are validated against gamut or contrast.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler, naming the resource first and the three output options last. It is efficient, though it leaves no room for the routing and return-value context that would help an agent.

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?

With three well-documented parameters and no output schema, the definition is callable but thin. Because there is no output schema, the description should at least indicate the return shape (a token document, CSS text, or config object) and it does not.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already explains colors, format (with enum and default w3c), and prefix (default "color"). The description only echoes the format enum values and adds no syntax or behavioral detail such as how prefix is applied to token names.

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

Purpose4/5

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

"Export colors as W3C Design Tokens, CSS custom properties, or Tailwind config" gives a specific verb (export), resource (colors), and enumerates the three output shapes, so an agent knows exactly what it produces. It stops short of differentiating from nearby generators such as generate-theme or generate-scale, which also emit color artifacts.

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

Usage Guidelines2/5

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

The description contains no when-to-use or when-not-to-use guidance and names no alternative. An agent must infer from the format list alone that this tool is for producing token/config artifacts rather than a theme or scale object.

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