Skip to main content
Glama

Color Converter

media_color_convert

Convert any color between hex, RGB and HSL with WCAG relative luminance — exact integer/channel math, no drift. Accepts #abc, #aabbcc, rgb() and hsl() input and reports every representation plus a light/dark verdict. Use this when an agent needs to hex ↔ RGB ↔ HSL + luminance, exact. x402 price $0.01/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYesColor

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavioral context: deterministic integer/channel math with no drift, the exact set of accepted input notations, the returned representations plus a light/dark verdict, and the x402 payment requirement ($0.01/call, USDC on eip155:8453). It does not state error behavior for malformed color strings, which keeps it out of 5 territory.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core capability and format list, followed by usage trigger and pricing; every sentence contributes information. Slightly dense with the payment metadata in the same block, but nothing is wasted.

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?

For a single-parameter converter with no annotations and no output schema, the description covers inputs, outputs, determinism and cost, which is close to sufficient. Return-value details are summarized rather than specified, but the absence of an output schema is only partially compensated.

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

Parameters4/5

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

Schema coverage is 100% but the schema description is only the generic word "Color", so the baseline is 3. The description goes beyond it by enumerating valid notations (#abc, #aabbcc, rgb(), hsl()), which is genuinely useful parameter-level information an agent could not infer from the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (convert colors between hex, RGB and HSL with WCAG relative luminance) plus the accepted input formats and the returned representations, so the agent knows exactly what it gets. It does not explicitly name or differentiate itself from the adjacent sibling media_contrast_check, which also involves luminance, so it stops short of a 5.

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?

"Use this when an agent needs to hex ↔ RGB ↔ HSL + luminance, exact" gives a usage trigger, but it largely restates the purpose rather than contrasting with alternatives. No when-not-to-use condition and no routing to media_contrast_check is provided, so usage is only implied.

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