color-engine
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| parse_colorA | Parse a CSS color string and return hex, rgb, oklch, and gamut info. |
| convert_colorA | Convert a CSS color string into a canonical hex, rgb, hsl, or oklch format string. |
| contrastA | Compute the WCAG 2.1 contrast ratio between two fully opaque CSS color strings and return WCAG tier flags (AA/AAA normal/large text). Set apca:true to also get the signed APCA-W3 Lc for text |
| gamut_mapA | Map any CSS color string into the sRGB gamut via perceptual OKLCH chroma reduction. Returns the nearest in-gamut hex, raw OKLCH components, and a |
| generate_rampA | Generate a tint-to-shade color ramp from a base CSS color. Returns an ordered list of swatches (light → dark) each with its in-gamut hex, display-rounded OKLCH components (l/c 5dp, h 2dp), WCAG contrast ratios (2dp) + tiers vs white and black, and an in-gamut flag. Optionally emits the ramp as design tokens via tokenFormat ("tailwind" JSON or a "css-variables" :root block). |
| solve_for_contrastA | Find a foreground color that meets one or more WCAG 2.1 contrast targets against a background. Binary-searches OKLCH lightness (holding hue/chroma fixed) and returns the nearest-compliant hex plus the achieved ratio. Pass |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: parsing, converting, contrast calculation, gamut mapping, ramp generation, and solving for contrast. Even where tools overlap conceptually (e.g., contrast vs solve_for_contrast), the boundaries are clear and descriptions eliminate ambiguity.
Most names follow a verb_noun pattern (parse_color, convert_color, generate_ramp) or a verb-like imperative (contrast, solve_for_contrast). The name 'gamut_map' deviates from a pure verb_noun pattern ('map_gamut' would be more consistent), but all names are lowercase with underscores and generally readable.
Six tools is well within the ideal 3-15 range and appropriate for a color utilities server. Each tool covers a distinct operation without unnecessary redundancy, making the set feel compact and well-scoped.
The tool surface covers parsing, conversion, contrast (including solving for contrast), gamut mapping, and ramp generation—a solid set for color manipulation. Minor gaps exist (e.g., no direct color mixing or component adjustment tool), but these are not essential for the domain and agents can work around them using existing tools.