Skip to main content
Glama
aimsise

color-engine

by aimsise

parse_color

Read-onlyIdempotent

Parses CSS color strings to extract hex, RGB, OKLCH, and gamut information. Converts any valid CSS color input into structured color data for further processing.

Instructions

Parse a CSS color string and return hex, rgb, oklch, and gamut info.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesCSS color string, e.g. "tomato", "#ff6347", "oklch(0.6 0.18 27)" (max 256 chars)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYesLowercase #rrggbb sRGB-clamped hex of the parsed color
rgbYessRGB-clamped 0-255 integer channels; see inGamut
oklchYesRaw (lossless) OKLCH components of the parsed color
inGamutYesfalse when the input fell outside the sRGB gamut
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds the specific output schema (hex, rgb, oklch, gamut info), which is useful context beyond the annotations.

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?

The description is a single, front-loaded sentence that states the action and the expected output with no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has a single parameter, a comprehensive output schema, and rich annotations. The description adequately covers the purpose and return format; no further details are needed for this low-complexity tool.

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?

Input schema has 100% description coverage, documenting the 'input' parameter with examples. The description does not add additional parameter meaning beyond what the schema provides, so baseline 3 is appropriate.

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 uses a specific verb 'parse' with a clear resource ('CSS color string') and explicitly lists the return information (hex, rgb, oklch, gamut info), distinguishing it from sibling tools like convert_color which would imply format conversion.

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?

No guidance on when to use this tool versus alternatives such as convert_color or gamut_map. The description implies a use case but does not state exclusions or preferred contexts.

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/aimsise/color-engine-mcp'

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