Skip to main content
Glama

mechacut

color_check

Color -> hex/rgb/hsl + relative luminance, and WCAG contrast ratio + AA/AAA pass flags when 'against' is given. #767676 vs white = 4.54, the boundary everyone gets wrong. Free.

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": "color_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYes#rgb | #rrggbb | rgb(r,g,b)
againstNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the returned values (three color formats, luminance, contrast ratio, pass flags), the conditional that changes the output, and that the call is free. Gaps remain around invalid-input behavior and whether all three formats are always returned, which keeps it from a 5.

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?

Information is tightly packed and front-loaded, with the output set stated before the conditional case and the concrete 4.54 example anchoring the WCAG semantics. 'Free' and the aside 'the boundary everyone gets wrong' are slightly promotional, but they do convey cost and calibration value rather than pure filler.

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

Completeness4/5

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

For a simple two-parameter, no-annotation, no-output-schema computation tool, the description covers what it computes and when extra output appears, which is most of what an agent needs. The missing piece is accepted syntax for 'against', which matters because the example implies named colors are valid.

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 coverage is 50%: 'color' is documented in the schema, while 'against' has no schema description. The description explains that 'against' triggers contrast ratio and AA/AAA flags, adding real meaning, but never states the accepted format for 'against' — the example uses the named color 'white' even though the schema format guidance only mentions hex/rgb for 'color', leaving a genuine ambiguity.

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

Purpose5/5

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

The description names the exact operations (conversion to hex/rgb/hsl, relative luminance, WCAG contrast ratio with AA/AAA flags) and the resource (a color), and the arrow notation makes the input-to-output relationship explicit. It is clearly distinguishable from siblings like color_palette, which would not compute contrast pairs.

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: pass a color to convert or measure luminance, add 'against' for a WCAG comparison. There is no explicit statement of when to prefer this over color_palette or when not to use it, though the conditional 'when "against" is given' does explain the branching case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.