Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

parse-color-string

Parse any CSS color string and return normalized values for consistent color handling and validation.

Instructions

Parse any CSS color string and return normalized values

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": {
      "color": "<color>"
    },
    "name": "parse-color-string"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesColor string in any CSS format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must carry full behavioral burden. It does not state that the operation is read-only, what happens with an invalid or unparseable color string (error vs. null), what 'normalized values' actually contains, or any output shape — all significant gaps for a tool with zero annotation coverage.

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. It is appropriately sized for a one-parameter utility, though the terseness leaves the return-value phrase unresolved.

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?

For a simple one-parameter parse utility with no output schema and no annotations, the description is roughly adequate but underspecified: it never says what 'normalized values' look like or how invalid input is handled. Since no output schema exists, the description is the only place return semantics could be conveyed, and it declines to do so.

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?

There is a single required parameter with 100% schema coverage, so the schema already documents 'color' fully. The phrase 'any CSS color string' adds a small amount of meaning (accepts all CSS formats), but no format examples or edge cases are supplied. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb ('Parse') and resource ('any CSS color string') plus a hint at the return ('normalized values'). It is distinguishable from convert-color and get-color-info by implying extraction/normalization rather than conversion, but it never explicitly contrasts with those siblings.

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?

Usage is only implied: an agent can infer this is for turning a raw CSS color string into normalized values. There is no explicit statement of when to prefer it over convert-color or get-color-info, and no preconditions or exclusions are given.

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