Skip to main content
Glama

PickShade color tools

Fix contrast

fix_contrast
Read-only

Find the closest color that reaches a contrast target by changing only OKLCH lightness, so the hue and character stay. Targets: aa (4.5:1), aa-large (3:1), aaa (7:1), apca-body (Lc 75), apca-content (Lc 60), apca-large (Lc 45). Adjust the text color or the background.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText or foreground color
adjustNotext
targetNoaa
backgroundYesBackground color

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds genuinely useful behavioral context: the fix preserves hue and character by mutating only OKLCH lightness, which tells the agent what the transformation will and won't do. It does not describe the shape of the returned result, but with a safe read-only profile the bar is lower.

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?

Two sentences, front-loaded with the core mechanism before the target enumeration. The target list is long but each entry earns its place by decoding the enum; no filler sentences.

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 4-parameter, read-only, no-output-schema tool, the description covers the operation, the adjustable inputs, and the full target vocabulary. The only mild gap is that it doesn't state what the response contains (presumably the adjusted color pair), but no output schema exists to make that omission costly.

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 only 50%, and the description compensates well by spelling out what each target enum value actually means numerically (aa = 4.5:1, aaa = 7:1, apca-body = Lc 75, etc.) and by explaining that 'adjust' selects text vs background. The two color parameters are already documented in the 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?

States a specific verb (find/fix) plus the exact mechanism: the closest color reaching a contrast target, achieved by changing only OKLCH lightness. This is sharply distinguishable from siblings like check_contrast (measures) or audit_palette (bulk audit), which an agent can infer without opening schemas.

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?

The description implies when to use it (a color pair fails a contrast requirement and needs remediation) and clarifies that either text or background may be adjusted. However, it never explicitly contrasts itself with check_contrast or audit_palette, nor states when not to use it.

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.