Skip to main content
Glama
snayyar00

@webability/mcp

by snayyar00

check_color_contrast

Check foreground/background color contrast against WCAG thresholds, with optional brand-aligned replacement suggestions from a live URL or provided palette.

Instructions

Check a foreground/background color pair against WCAG contrast thresholds. When it fails, suggests BRAND-aligned replacements — extracts the actual brand palette from a live URL using our scanner (CSS vars + most-used colors), or use a provided brandColors array. No url and no brandColors = ratio + pass/fail only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoLive URL to extract brand palette from (uses our scanner — CSS vars + dominant colors).
isBoldNoWhether text is bold (default false)
fontSizeNoFont size in px (default 16)
backgroundYesBackground color (hex or rgb)
foregroundYesForeground color (hex or rgb)
brandColorsNoPre-supplied brand palette. Skips URL extraction if provided.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the extraction process (CSS vars + dominant colors) and fallback behavior. No destructive actions or rate limits mentioned; sufficient for a check 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?

Description is two sentences, front-loads the primary purpose, and efficiently conveys core behavior and conditional logic without redundancy.

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 specify output. It mentions 'ratio + pass/fail' and 'suggests replacements' but lacks details on suggestion format. Adequate but not fully complete.

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. Description adds workflow context (how url and brandColors trigger suggestions, fallback without them) beyond schema definitions, aiding parameter selection.

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 a foreground/background color pair against WCAG contrast thresholds and optionally suggests brand-aligned replacements. It distinguishes itself from unrelated sibling tools.

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 explains when suggestions are provided (with url or brandColors) and when only ratio/pass-fail is returned. It does not explicitly mention alternatives but sibling tools are unrelated, so context is clear.

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/snayyar00/webability-mcp'

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