Skip to main content
Glama

Check WCAG Accessibility

accessibility_check
Read-only

Assess WCAG 2.1 contrast ratios and AA/AAA pass/fail grades between a foreground hex and a background color.

Instructions

Return WCAG 2.1 contrast ratios and AA/AAA pass/fail grades for a foreground hex against a background.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hex_valYesForeground hex value
backgroundNoBackground hex (default 'FFFFFF')FFFFFF

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
resultNo
errorNo
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the description doesn't need to repeat idempotency. It adds value by specifying the output includes WCAG 2.1 criteria, which goes beyond annotations. No contradictions.

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?

Single sentence that is front-loaded with the action and result. No unnecessary words; every part is relevant.

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

Completeness5/5

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

With only two simple parameters, one required, and an output schema existing (not shown but indicated), the description is fully adequate. It explains what the tool does and what is returned.

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?

Input schema coverage is 100%, so the baseline is 3. The description adds context that the foreground is checked against the background, but doesn't clarify hex format or that background defaults to white. Minimal added value.

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 specifies the exact action ('Return WCAG 2.1 contrast ratios and AA/AAA pass/fail grades') and the resource ('foreground hex against a background'). It clearly distinguishes from sibling tools like accessibility_font or accessibility_matrix by focusing on contrast ratios.

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?

The description provides no guidance on when to use this tool versus alternatives. Sibling tools include accessibility_matrix (which likely checks multiple contrasts), accessibility_simulate (simulations), and others, but there is no mention of when to choose this specific tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DigbyO/colour-memory-api'

If you have feedback or need assistance with the MCP directory API, please join our Discord server