Skip to main content
Glama
First-CH

@first-ch/tools-mcp

Official
by First-CH

WCAGコントラスト比チェック

contrast_check

Calculate WCAG 2.1 contrast ratio between text and background colors. Checks AA/AAA compliance for normal text, large text, and UI components to verify web accessibility.

Instructions

文字色と背景色のWCAG 2.1コントラスト比を計算し、AA/AAA基準(通常/大テキスト・UI部品)の合否を返す。Webデザインの配色検証・アクセシビリティチェックに使う。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bgYes背景色(hex。例: #ffffff)
fgYes文字色(hex。例: #333333 / 333 / fff)
Behavior4/5

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

No annotations provided; description carries full burden. It discloses WCAG 2.1 computation for AA/AAA (normal/large text, UI components). Does not mention edge cases (e.g., alpha, invalid colors) but adequate for a straightforward tool.

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, zero waste. First sentence defines core functionality, second provides usage context. Well front-loaded.

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

Completeness3/5

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

No output schema, so description should clarify return structure. It says '合否を返す' (returns pass/fail) but not whether it's a boolean or object with details. For a simple tool, it's adequate but could be more precise.

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 description coverage is 100%, so baseline is 3. Description reinforces '文字色' and '背景色' but adds little beyond schema. Schema already describes hex format and examples, so 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?

Description clearly states the tool computes WCAG 2.1 contrast ratio and returns pass/fail for AA/AAA standards. Verb '計算する' and resource 'コントラスト比' are specific. Siblings are unrelated (e.g., count_chars, webp_convert), so no confusion.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description explicitly states use cases: Web design color verification and accessibility checking. No alternatives mentioned, but siblings are semantically distant, so this is sufficient.

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/First-CH/firstch-tools-mcp'

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