Skip to main content
Glama

convert_color

Convert a color between formats. Input accepts a hex, CSS name, RNV brand name, or saved-palette reference. With to set to one of hex/rgb/hsv/hsl/lab, returns just that format; leave to out to get all of them. hsv and hsl are fractions from 0 to 1, hue included (multiply hue by 360 for degrees). Read-only and deterministic, with no side effects. Use for format conversion of a single color; to blend several colors into one use mix_colors, and to compare two colors use color_difference.

Input Schema

NameRequiredDescriptionDefault
toNo
colorYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the safety profile ('Read-only and deterministic, with no side effects') plus output behavior (single format when `to` is set, all formats otherwise). The only gap is failure behavior for malformed or unrecognized color strings, which an agent would want to know before calling.

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?

Four tight sentences: purpose, input formats, output branching, output encoding, safety, and routing. Nothing is redundant with the schema, and the most decision-relevant facts (accepted inputs, when to use alternatives) are front-loaded.

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?

An output schema exists, yet the description still usefully summarizes the branching return shape without duplicating field-by-field structure. For a 2-parameter read-only converter it covers inputs, outputs, encoding conventions, safety, and sibling routing — nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and `to` has no enum, so the description must compensate fully — and it does: `color` accepts hex, CSS name, RNV brand name, or saved-palette reference, and `to` accepts hex/rgb/hsv/hsl/lab with omission meaning 'all formats'. It even documents the hsv/hsl 0–1 fractional convention, which the schema cannot express.

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?

Opens with a specific verb+resource ('Convert a color between formats') and immediately narrows scope to a single color, which separates it from mix_colors and color_difference named later. An agent knows exactly what this tool does without opening the schema.

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

Usage Guidelines5/5

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

Explicitly routes: 'Use for format conversion of a single color; to blend several colors into one use mix_colors, and to compare two colors use color_difference.' Both when-to-use and when-to-use-an-alternative are stated with conditions, matching sibling names exactly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.