Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

calculate-delta-e

Calculate perceptual color difference between two colors using CIE76, CIE94, or CIEDE2000 to assess how close or distinguishable they are.

Instructions

Calculate perceptual color difference (Delta-E) between two colors

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": {
      "color1": "<color1>",
      "color2": "<color2>"
    },
    "name": "calculate-delta-e"
  }
}

Input Schema

NameRequiredDescriptionDefault
kCNoCIEDE2000 chroma weight (default 1)
kHNoCIEDE2000 hue weight (default 1)
kLNoCIEDE2000 lightness weight (default 1, textiles use 2)
color1YesFirst color
color2YesSecond color
methodNoDelta-E calculation methodCIEDE2000

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 are supplied, so the description has to carry the full behavioral burden, and it does not. It says nothing about the return value (a single numeric delta), what scale the result is on, or that the calculation is pure and side-effect free. For a deterministic math tool the risk is low, but disclosure is still missing.

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?

One short, front-loaded sentence with no filler and no redundancy. The structure is clean, though the brevity edges into under-specification rather than efficient concision.

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?

There is no output schema and no annotations, and the description does not state that a single number is returned or how to read it. For a 6-parameter computational tool, that leaves a meaningful gap about the result and about method selection.

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%, and the schema itself explains every parameter, including the method enum and the kL/kC/kH weights. The description adds no meaning beyond that, which is expected: 3 is the correct baseline when the schema does the work.

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?

The description gives a specific verb and resource: 'Calculate perceptual color difference (Delta-E) between two colors'. That is clearly distinct from sibling tools like calculate-contrast or calculate-luminance. It stops short of naming which sibling to use for a non-perceptual difference, so a 5 is not warranted.

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 calculate-contrast, calculate-apca-contrast, or validate-wcag-contrast. The description also leaves to the caller the choice among CIE76, CIE94, and CIEDE2000, even though choosing the method materially changes the result.

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