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; otherwise returns all of them. 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

TableJSON Schema
NameRequiredDescriptionDefault
toNo
colorYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description bears full responsibility and delivers: it states 'Read-only and deterministic, with no side effects,' and explains the conditional output when `to` is set versus omitted. This goes beyond structural fields and gives a transparent behavioral profile.

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 entire description is two sentences. The first sentence states the purpose and input types, the second covers output logic and usage guidance. Every clause earns its place with no filler, 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 presence of an output schema (which handles return value details), the description is complete: it covers input variability, the conditional output, side-effect safety, deterministic behavior, and alternatives. There are no significant gaps for a tool with two parameters and a single color conversion task.

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 description coverage is 0%, so the description must compensate. It does: 'color' is defined as accepting hex, CSS name, RNV brand name, or saved-palette reference, and 'to' accepts one of hex/rgb/hsv/hsl/lab, with the default behavior described. This adds rich meaning beyond the bare string type in the schema.

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 starts with 'Convert a color between formats,' a specific verb and resource. It clearly enumerates accepted input types (hex, CSS name, RNV brand name, saved-palette reference) and the output behavior, and explicitly distinguishes from sibling tools by naming mix_colors and color_difference as alternatives.

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?

The last sentence gives explicit guidance: '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.' This is a direct when-to-use with named alternatives, satisfying the dimension fully.

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.