Skip to main content
Glama

color-converter

Read-onlyIdempotent

Convert a color between hex, RGB, HSL, and HSV representations. Auto-detects the input format from the string syntax.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesThe input color string. Accepts: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, rgb(r,g,b), rgba(r,g,b,a), hsl(h,s%,l%), hsla(h,s%,l%,a). Spaces optional.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYes6-digit hex color with leading #.
hslYesHSL representation.
hsvYesHSV representation.
rgbYesRGB representation.
rgbaYesRGBA representation.
hex_with_alphaYes8-digit hex with alpha if alpha < 1, else same as hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, establishing safety. The description adds the useful behavioral trait of auto-detecting the input format, but does not disclose output shape, invalid input handling, or edge cases. It adds some value beyond annotations but remains minimal.

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 two concise, information-dense sentences. The first states the core purpose, the second explains a key behavior (auto-detection). No filler or redundancy.

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

Completeness4/5

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

Given the strong annotations and complete schema, the description is largely sufficient. The only minor gap is ambiguity about whether the output returns all representations or a specific one, but the output schema (not shown) likely resolves this. The description could also mention invalid input behavior, but it is a simple converter.

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%, so the baseline is 3. The tool description does not add parameter information, but the schema's parameter description thoroughly lists accepted input formats. No additional compensation is needed.

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 states a specific action ('Convert') on a clear resource (color) and enumerates the supported representations (hex, RGB, HSL, HSV). It distinguishes itself from the sibling 'hex-to-rgb' tool by covering more formats, and the auto-detection note reinforces its purpose.

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

Usage Guidelines3/5

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

The description implies when to use it (when color conversion across these formats is needed) but does not explicitly mention alternatives or when not to use it. It does not reference the overlapping sibling tool 'hex-to-rgb', leaving the choice to the agent's inference.

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.

Resources