Skip to main content
Glama
Color Theory MCP Server

Color Theory MCP Server

generate-gradient

Generate color gradients between two or more colors with configurable interpolation spaces and optional CSS output for design and UI tasks.

Instructions

Generate a smooth color gradient between two or more colors with configurable interpolation space

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate-gradient"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoNumber of color stops in the gradient
colorsNoMultiple color stops (for multi-stop gradient)
endColorNoEnding color (for 2-color gradient)
includeCSSNoInclude CSS gradient string
startColorNoStarting color (for 2-color gradient)
interpolationSpaceNoColor space for interpolationoklch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it implies a pure, side-effect-free computation but never says so outright. It discloses nothing about the return shape (color array vs. CSS string), which matters since there is no output schema, and does not explain the two-color vs. multi-stop input modes that the schema exposes.

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 front-loaded sentence with no filler, and the distinguishing capability (interpolation space) is placed before any subordinate detail. It is arguably too sparse rather than too long, but there is no wasted wording.

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?

For a six-parameter tool with zero required fields and no output schema, the definition leaves real gaps: an agent cannot tell what is returned, what happens when no colors are supplied at all, or how colors/startColor/endColor interact. It is adequate to identify the operation but not complete enough to predict results.

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 the schema already documents all six parameters including the interpolation-space enum and step bounds. The description echoes 'two or more colors' and 'interpolation space' but adds no syntax, defaults, or precedence rules (e.g., colors vs. startColor/endColor) beyond what the schema states, so baseline 3 applies.

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?

The description states a specific verb and resource ('Generate a smooth color gradient') plus the key variable ('configurable interpolation space'), which clearly separates it from pure computation siblings like mix-colors or calculate-contrast. It stops short of naming a sibling or contrasting itself with generate-harmony or generate-scale, so it lands at clear-but-undifferentiated.

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?

Usage is only implied: an agent can infer this is for producing gradients rather than palettes or harmonies, but there is no explicit statement of when to choose this over mix-colors, generate-harmony, or generate-scale. No prerequisites or exclusions are given.

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