Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

generate-accessible-palette

Generate WCAG-compliant color variants against a chosen background to improve contrast, targeting AA or AAA accessibility levels.

Instructions

Generate WCAG-compliant versions of colors for a given background

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "colors": "<colors>",
      "backgroundColor": "<backgroundColor>"
    },
    "name": "generate-accessible-palette"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoWCAG conformance level to targetAA
colorsYesArray of colors to make accessible
backgroundColorYesBackground color to ensure contrast against

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it does convey that output colors are constrained to meet WCAG contrast against the supplied background, which is the key behavioral trait. It does not say whether already-compliant colors are returned unchanged, what happens when a color cannot be made compliant, or that this is a pure computation with no persisted side effects.

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?

A single well-formed sentence with the resource and the constraint front-loaded and no filler. It is efficient, but the brevity comes at the cost of the missing usage and return guidance rather than being purely economical.

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?

With no annotations and no output schema, the agent gets no picture of the return value (an ordered array of adjusted colors? contrast ratios included? same length as input?). For a transform tool that returns data rather than an object the agent can inspect, this is a meaningful gap, though the core intent is still recoverable.

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%, and the schema itself documents the color array, the background color, and the AA/AAA level enum with its default. The description adds no format hints (hex vs rgb), no array size limits, and no default-value reminder, so it does not go beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb ('Generate') and a specific output class ('WCAG-compliant versions of colors') scoped by a background constraint. It is distinguishable from validate-wcag-contrast and calculate-contrast, which check rather than produce colors, though it does not explicitly name any sibling.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. The closest thing to context is the phrase 'for a given background', which implies use when designing text/foreground colors against a known surface, but the agent must infer this and must guess how it differs from adjust-color or generate-palette.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.