Skip to main content
Glama
HtetOoWaiYan

Colors MCP Server

by HtetOoWaiYan

Color Difference

colors_difference
Read-onlyIdempotent

Compare two colors by calculating their DeltaE difference or WCAG contrast ratio, so you can verify palette harmony and text readability.

Instructions

Calculate color difference (DeltaE) or contrast ratio

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
color1YesColor string in any supported format (e.g., "#ff0000", "red", "rgb(255, 0, 0)", "oklch(0.6 0.2 29)")
color2Yes
metricNoMetric to calculate (deltaE or contrast)deltaE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered structurally. The description adds no behavioral context beyond that, which is acceptable for a pure computation but earns no bonus.

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

Conciseness3/5

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

A single short phrase with zero waste and a front-loaded verb, but it is under-specified rather than concise. There is room for one clarifying clause distinguishing the metric modes and the contrast sibling without bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description is the only place shape could be conveyed, yet it says nothing about the return value (DeltaE scale, contrast ratio range 1:1–21:1, or whether a single number or object is returned). For a 3-parameter calculation tool with no output schema, that is a meaningful gap.

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 67%, with color1/color2 formats and the metric enum already documented in the schema. The description's 'DeltaE or contrast ratio' merely echoes the metric enum values rather than adding accepted-format or metric-choice semantics beyond what the schema provides.

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

Purpose3/5

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

States a specific verb and resource ('Calculate color difference (DeltaE) or contrast ratio'), which is clearer than a bare name restatement. However it fails to differentiate from the sibling colors_contrast, which appears to overlap directly with the 'contrast ratio' branch of this same tool, leaving an agent unsure which to call.

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 when-to-use guidance at all: nothing explains when to pick colors_difference over colors_contrast or colors_batch_difference, nor when to choose the deltaE vs contrast metric. The overlap with a dedicated contrast sibling makes this omission costly rather than benign.

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