Skip to main content
Glama
aimsise

color-engine

by aimsise

convert_color

Read-onlyIdempotent

Convert any CSS color string to canonical hex, rgb, hsl, or oklch format. Provide input color and target format to get standardized output.

Instructions

Convert a CSS color string into a canonical hex, rgb, hsl, or oklch format string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesTarget color format to convert the input into
inputYesCSS color string to convert, e.g. "#ff0000", "tomato" (max 256 chars)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesThe input color formatted in the requested target format (oklch is raw/lossless; hex/rgb/hsl are sRGB-clamped for out-of-gamut inputs)
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is well covered. The description adds the 'canonical' normalization detail but does not discuss error handling, alpha preservation, or other edge-case behavior; nevertheless, the output schema and annotations make this adequate.

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?

A single, front-loaded sentence immediately states the verb, object, and available output formats. There is no filler or redundant explanation, making it highly concise and well structured.

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?

Given the tool's simplicity, rich annotations, full input schema coverage, and the existence of an output schema, the description is complete enough for an agent to select and invoke the tool correctly. It specifies the input type, output options, and the conversion intent without needing to explain return values.

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 both parameters (input and to) are described with examples and enum values. The description merely restates the target formats from the enum and adds no additional parameter-level meaning, so the baseline score of 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 ('Convert') and resource ('CSS color string') and enumerates the four canonical output formats (hex, rgb, hsl, oklch), clearly defining the tool's function. It implicitly distinguishes the tool from siblings like parse_color or contrast by focusing on producing a format string.

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

Usage Guidelines4/5

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

The description gives clear context: this tool handles converting a CSS color string into a chosen canonical format. However, it does not explicitly mention when not to use it or name alternative sibling tools, so it lacks full exclusion guidance.

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