Skip to main content
Glama

Agent Data Tools: Developer utilities

color_contrast

WCAG 2 contrast ratio between a text colour and a background colour, with pass/fail for AA and AAA at normal and large text sizes. Use to check that a design is readable. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bgYesBackground colour
fgYesText colour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The description discloses something no annotation carries: the $0.001 USDC on Base cost paid via x402 per successful call. That payment/auth requirement is high-value behavioral context, and it plausibly explains why readOnlyHint is false. It does not add further traits (determinism, format handling), so not 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.

Conciseness5/5

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

Two sentences, front-loaded with the core function followed by usage and cost. No filler; every clause carries information.

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?

No output schema exists, yet the description covers the return shape (AA/AAA pass/fail at both text sizes) and the payment model. The only real gap is accepted colour input formats for a tool whose whole job is parsing colours.

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 100%, so fg/bg are already documented, and the description maps them to 'text colour' and 'background colour'. However, neither the schema nor the description specifies accepted colour formats (hex, rgb, named), so no meaning is added beyond the baseline.

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 precise verb+resource (compute WCAG 2 contrast ratio between text and background colours) and even enumerates the outputs (AA/AAA pass/fail at normal and large sizes). This clearly distinguishes it from the generic 'color' and 'random_color' siblings.

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?

'Use to check that a design is readable' gives an implied use context, but there are no exclusions, prerequisites, or named alternatives (e.g. vs. the generic 'color' tool). Minimum viable routing guidance only.

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