Skip to main content
Glama

Token contrast matrix

check_contrast_tokens
Read-only

Take a design token file (CSS custom properties like --color-text: #111;, a JSON object of colors, or W3C design tokens) and test every foreground-like token against every background-like token for 4.5:1 text and 3:1 component contrast, with the nearest passing color, and find colors that merge under color blindness. Free up to about 30 colors; Pro takes 200. Returns a markdown report.

Input Schema

NameRequiredDescriptionDefault
tokensYesThe token file contents

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish that this is a safe read-only operation, and the description adds meaningful behavior: pair-wise testing thresholds of 4.5:1 and 3:1, nearest passing color suggestions, color-blindness merging detection, tier limits, and a markdown report. It does not mention error handling, but it goes well beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

The description is front-loaded with the input and core behavior, and its two sentences carry useful specifics. The free/Pro sentence is somewhat promotional but still conveys a practical capacity limit, so it mostly earns its place.

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 one-parameter read-only tool with no output schema, the description covers input formats, processing behavior, contrast thresholds, ancillary checks, limits, and return format. That is nearly complete, with only error handling left unaddressed.

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 adds useful parameter-level meaning by enumerating supported token formats (CSS custom properties, JSON color object, W3C design tokens) and giving a concrete CSS example. That compensates for the terse schema description 'The token file contents'.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: taking a design token file and testing foreground/background token pairs for contrast. The phrase 'design token file' helps distinguish it from generic contrast-checking siblings, though it never names an alternative directly.

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 'Take a design token file' and the accepted input formats, so an agent can infer when it applies. However, it gives no explicit when-to-use or when-not-to-use guidance relative to siblings like check_contrast and css_contrast_pairs.

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