Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

convert-color

Convert a color from hex, RGB, or named values into a specified color space such as sRGB, Lab, Oklch, HSL, CMYK, Rec2020, ProPhoto, or ACEScg.

Instructions

Convert a color to a different color space (sRGB, Lab, Oklch, HSL, CMYK, Rec2020, ProPhoto, ACEScg, etc.)

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>",
      "targetSpace": "<targetSpace>"
    },
    "name": "convert-color"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesColor value (hex, RGB, or named color)
targetSpaceYesTarget color space for conversion

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it says nothing about return format, precision/rounding, or how out-of-gamut conversions (e.g. to CMYK or ACEScg) are handled. The only behavioral signal is the parenthetical list of spaces, which is not enough for a color-math tool with no safety or error-behavior disclosure.

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?

A single front-loaded sentence with the action first and the supported spaces as a compact parenthetical. No filler or redundancy.

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 two-parameter tool with full schema coverage and no output schema, the purpose and target spaces are adequately covered. However, nothing is said about what the result looks like or how out-of-gamut or invalid input is treated, which matters for cross-space conversion.

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 both parameters are already documented with types, an enum, and descriptions; the baseline of 3 applies. The description adds no accepted-input syntax beyond what the schema says, and its "etc." implies more spaces than the 16-value enum actually allows.

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 and resource ("Convert a color") plus the target dimension (color space) and enumerates concrete examples of spaces. It is immediately clear what the tool does, though it does not distinguish itself from siblings like convert-batch or parse-color-string.

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?

There is no guidance on when to use this tool versus alternatives such as convert-batch (for multiple colors) or parse-color-string. Usage is only implied by the verb, and no exclusions or prerequisites are given.

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