Skip to main content
Glama

check_contrast

Read-only

Contrast ratios for up to 50 caller-supplied color pairs. No page is fetched. Each pair reports the WCAG 2.2 ratio, AA and AAA for normal and large text, the 3:1 non-text result, and a nearer foreground when AA is not met. Price 0.01 USD in USDC on Base, settled after a successful check.

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

Input Schema

NameRequiredDescriptionDefault
boldNo
pairsYes
fontSizePxNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses that no page is fetched, the exact per-pair output (WCAG 2.2 ratio, AA/AAA normal and large, 3:1 non-text, nearest passing foreground), and the payment terms: 0.01 USD in USDC on Base, settled only after a successful check. Cost and settlement timing are exactly the behavioral facts an agent needs before invoking a paid tool.

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?

Four short sentences, each earning its place: scope, the no-fetch constraint, the return contents, then price. Front-loaded and free of 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?

With no output schema, the description usefully enumerates what each pair returns, and the pricing disclosure covers the cost dimension. The remaining gap is input contract details (color format, threshold effects of fontSizePx/bold) that no structured field supplies.

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 0%, so the description carries the burden; it partially compensates by tying the boolean and font-size parameters implicitly to 'normal and large text' and by confirming the 50-pair cap. However, it never states the accepted color string format (hex, rgb, named) nor how bold/fontSizePx change the applied thresholds, leaving the required foreground/background inputs underspecified.

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?

States a specific verb+resource (contrast ratios for caller-supplied color pairs) and immediately scopes it away from the page-scanning siblings with 'No page is fetched.' An agent can distinguish this from scan_page/scan_site without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Caller-supplied color pairs. No page is fetched.' clearly establishes the input condition that selects this tool over the page-scanning siblings, and 'up to 50' caps scope. It does not explicitly name the alternative tool or say when not to use it, so it falls just short of full routing guidance.

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.