Skip to main content
Glama

contrast_ratio

Read-onlyIdempotent

Contrast checker client and server side from freedailypro — WCAG AA/AAA

Input Schema

NameRequiredDescriptionDefault
backgroundYes
foregroundYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. Beyond that the description adds nothing behavioral: it does not say what is returned (a numeric ratio, threshold verdict, or both) or that inputs must be valid color values, and 'client and server side' is opaque filler.

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?

It is a single short, front-loaded sentence, which is structurally fine. However, the 'from freedailypro' clause earns no place in a tool description meant for an agent, so it is not maximally economical.

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?

For a two-parameter tool with no output schema and no schema descriptions, the definition should at minimum state the color input format and the shape of the result. It supplies neither, so an agent cannot reliably invoke it correctly without guessing.

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

Parameters2/5

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

Schema description coverage is 0% for two required parameters, so the description carries the full burden of explaining foreground and background. The contrast/color context gives a weak hint that these are color values, but no accepted format (hex, rgb(), named CSS) is stated, leaving a real ambiguity for an agent to guess at.

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?

The description states it is a 'contrast checker' and ties it to the WCAG AA/AAA standard, so the general purpose is inferable, but it never says it takes two colors and returns a contrast ratio or pass/fail result. The phrase 'client and server side from freedailypro' is vendor noise that does not help an agent distinguish this from siblings like color_convert.

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?

There is no explicit when-to-use guidance and no mention of alternatives, even though color_convert and analyze_readability are plausible adjacent tools. 'WCAG AA/AAA' weakly implies an accessibility-checking context but states no condition or exclusion.

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