Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Arteon Tools. If you published it, claim ownership there.

Check color contrast

check_contrast
Read-onlyIdempotent

Calculate the WCAG 2.2 contrast ratio between a text color and a background color and report whether it passes AA and AAA for normal text, large text and user interface components. Accepts hex, rgb(), rgba(), hsl() and CSS color names; a semi-transparent background is placed on white.

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": {
      "foreground": "<foreground>",
      "background": "<background>"
    },
    "name": "check_contrast"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the returned tool page link and of the text rules, one of: pl, en, de, es, fr, pt, it, cs, ar, id, tr, el, uk, ro, th, ja, vi, hi. Defaults to en.
backgroundYesBackground color, for example white.
foregroundYesText color, for example #555.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description still adds real behavioral context: the accepted color notations and the specific rule that a semi-transparent background is composited onto white. That compositing rule materially changes results and is not derivable from the schema or annotations.

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?

Two sentences with no filler: the first states the computation and the verdicts, the second states input formats and the transparency edge case. Front-loaded and fully earned.

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 small read-only tool with no output schema, the description covers what is computed, what is reported, and what inputs are accepted, which is enough to call it correctly. The only omission is any hint about the localized tool-page link implied by the locale parameter, which is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns extra credit by enumerating the accepted color input formats (hex, rgb(), rgba(), hsl(), CSS names), which the schema only hints at with examples like 'white' and '#555'. The locale parameter is left unmentioned, though the schema fully documents it.

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 gives a specific verb and resource (calculate the WCAG 2.2 contrast ratio between text and background) plus the exact verdicts returned (AA/AAA for normal text, large text, UI components). That is far more precise than the sibling convert_color or check_readability, so an agent can tell which tool answers a contrast question.

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 implied by the purpose statement — you call it when you need a WCAG pass/fail — but there is no explicit when-to-use or when-not-to-use guidance and no mention of which sibling handles the adjacent task (e.g. convert_color for producing a hex value). Adequate, with a clear gap.

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.

Resources