Skip to main content
Glama
teyepe

systembridge-mcp

by teyepe

check_contrast

Check color contrast ratios with WCAG 2.1 or APCA algorithms. Enter a foreground/background pair or scan your design tokens to identify contrast failures.

Instructions

Check color contrast ratios using WCAG 2.1 and/or APCA algorithms. Two modes: (1) provide explicit foreground + background colors, or (2) scan your token set for all foreground/background pairs and report failures.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
algorithmNoWhich algorithm(s) to use. Default: both.
thresholdNoMinimum WCAG contrast ratio to consider passing (e.g. '4.5' for AA normal text). Only affects which pairs are flagged in scan mode.
backgroundNoBackground color value (hex, rgb, hsl). Required if 'foreground' is provided.
foregroundNoForeground color value (hex, rgb, hsl). If provided with 'background', checks that single pair.
pathPrefixNoWhen scanning tokens, only check pairs under this path prefix. Comma-separated for multiple.
Behavior4/5

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

With no annotations, the description does the heavy lifting. It reveals that the tool can operate on single pairs or scan tokens, uses multiple algorithms, and that threshold only affects scan mode. It does not describe return format, error handling, or performance, but the core behavior is transparent and consistent with expected contrast checking.

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 two sentences, immediately conveying the purpose and modes. No unnecessary words. Information density is high and front-loaded.

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?

Given 5 parameters, no output schema, and no annotations, the description covers the essential modes and parameters. It might lack details on return values or error cases, but for a straightforward check tool, it is adequate for an agent to decide and invoke correctly.

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%, providing baseline 3. The description adds semantic value by explaining the two interaction modes: background+foreground for a single check vs. threshold+pathPrefix for scanning. It also clarifies that 'threshold' only applies to scan mode. This exceeds the schema's basic existence descriptions.

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 that the tool checks color contrast using WCAG 2.1 and APCA algorithms. It outlines two distinct modes (single pair or token scan), which differentiates it from sibling tools that handle tokens, themes, or audits. The verb 'check' and resource 'contrast' are specific and unambiguous.

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?

The description provides clear context on when to use the tool (checking contrast) and explains the two modes. It does not explicitly state when NOT to use it or list alternatives, but since no sibling tool performs contrast checking, the guidance is sufficient. The scan mode usage is partially implied via parameter hints.

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/teyepe/systembridge-mcp'

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