Skip to main content
Glama
AiAgentKarl

accessibility-mcp-server

check_color_contrast

Assess color contrast ratios between foreground and background colors per WCAG 2.1. Returns contrast ratio, WCAG level, and recommendations for accessible text.

Instructions

Prueft den Farbkontrast zwischen Vordergrund- und Hintergrundfarbe nach WCAG 2.1.

Args: foreground: Vordergrundfarbe als Hex (#RRGGBB oder #RGB), z.B. '#000000' background: Hintergrundfarbe als Hex (#RRGGBB oder #RGB), z.B. '#ffffff' font_size_pt: Schriftgroesse in Punkt (Standard: 12pt) bold: True wenn Fettschrift

Returns: Kontrastverhältnis, WCAG-Level und Empfehlungen

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
foregroundYes
backgroundYes
font_size_ptNo
boldNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must convey behavioral traits. It only lists return values but omits error handling, prerequisites (e.g., valid hex format), or side effects. This is insufficient for a tool with zero annotation coverage.

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?

The description is concise and well-structured with Args and Returns sections. Every sentence is informative and front-loaded. No redundancy.

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 simple checking tool with an output schema, the description covers the key inputs and outputs. However, it lacks guidance on error cases or edge conditions (e.g., invalid colors). Completeness is high but not perfect.

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?

The schema has 0% coverage (no parameter descriptions), so the description compensates by explaining each parameter with examples and defaults (e.g., '#000000' for foreground). This adds significant meaning beyond the raw schema.

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 clearly states the tool checks color contrast per WCAG 2.1, specifying the verb and resource. It distinguishes from sibling tools like check_heading_structure or check_form_labels.

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?

No explicit when-to-use or when-not-to-use guidance. Usage is implied by the tool's purpose, but alternatives are not mentioned. Sibling tools are listed but not contrasted.

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/AiAgentKarl/accessibility-mcp-server'

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