Skip to main content
Glama

Agent Data Tools: Developer utilities

color

Convert a colour between hex, RGB and HSL, and give its relative luminance and whether black or white text reads better on it. Accepts #rgb, #rrggbb, rgb(r,g,b) and hsl(h,s%,l%). Use for theming and design checks. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colorYesThe colour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations are present but thin in what they convey, and the description adds material context they do not carry: the exact cost ($0.001 USDC on Base per successful call) and the x402 payment mechanism, which is real behavioral information an agent needs. It does not describe the response shape, but for a stateless converter this is a minor gap.

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?

Three tight sentences: capability first, accepted inputs second, usage plus the cost caveat last. No filler, and the most decision-relevant information (what it does and what it costs) is front-loaded.

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 trivial one-parameter converter with no output schema, the description covers the operation, input formats, output fields and the payment requirement. Nothing essential is missing, though it could have said whether the call fails or returns an error on an unparseable colour.

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?

With a single parameter at 100% schema coverage the baseline is already high, and the description genuinely adds value beyond the schema's bare 'The colour' by listing the accepted input formats (#rgb, #rrggbb, rgb(r,g,b), hsl(h,s%,l%)).

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?

The description states a specific verb and resource ('Convert a colour between hex, RGB and HSL') and even enumerates the outputs it also returns (relative luminance, black/white text recommendation). It is very clear what the tool does, but it never names or distinguishes itself from the close siblings color_contrast and random_color, so an agent gets no sibling routing help.

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 for theming and design checks' implies a usage context but gives no when-not-to-use guidance and never points at color_contrast for the contrast-specific sibling. The agent must infer the boundary from the purpose statement alone.

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