Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

validate-gamut

Check whether a color falls inside a target color space gamut, like sRGB, Display-P3, or Rec.2020. Use it to confirm a color is representable before conversion or design use.

Instructions

Check if a color is within a specific color space gamut

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": "validate-gamut"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesColor to check
targetGamutNoTarget color space gamut to check againstsrgb

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Check' implies a non-mutating query, but the description never states the return shape (boolean vs. per-channel clipping detail) or how out-of-gamut colors are reported, leaving a meaningful gap for an unannotated tool.

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 no wasted words. It is efficient, though the brevity trades away any behavioral detail.

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 read check with full schema coverage, the definition is minimally adequate. The missing piece is what the tool returns, which matters given there is no output schema and no annotations to imply it.

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%, with both parameters documented and an enum plus default on targetGamut, so the schema does the heavy lifting. The description adds nothing beyond what the schema already says about the color and target gamut.

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: 'Check if a color is within a specific color space gamut.' This clearly distinguishes it from siblings like validate-wcag-contrast or validate-print-safe, which check different properties, though the description never names those alternatives explicitly.

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?

No guidance on when to use this versus the many other validate-* siblings, and no prerequisites or exclusions. The agent must infer from the name alone that this is the gamut-specific check.

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