Skip to main content
Glama

Agent Data Tools: Utilities

Hex to RGB, color converter: convert a color between hex, RGB and HSL

color
Read-only

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. Example: color=#0f6cbd. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "color": "<color>"
    },
    "name": "color"
  }
}

Input 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 already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds real context beyond them: pricing of $0.01/call, first-10-free, failed calls free, and the explicit warning that repeated identical calls are still charged. That last point usefully explains the otherwise puzzling idempotentHint=false. It does not describe the response shape beyond naming the two computed values.

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?

Purpose and accepted formats are front-loaded, with usage, example and pricing trailing in a logical order. The pricing/free-tier sentence is slightly boilerplate-heavy but earns its place because it warns about repeat charges.

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?

With no output schema and only one thin-schemaed parameter, the description supplies the input formats, the example, the two computed outputs, and the billing model — everything needed to invoke it correctly. Return serialization is the only minor omission, and the named outputs largely cover it.

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?

The schema's own parameter description is only 'The colour', so the description carries the real semantic load by enumerating accepted syntaxes (#rgb, #rrggbb, rgb(r,g,b), hsl(h,s%,l%)) and giving a worked example. That is genuine meaning added beyond structured data, though it doesn't note invalid-input behavior or case sensitivity.

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 concrete verb and resource ('Convert a colour between hex, RGB and HSL') and adds the extra outputs (relative luminance, black/white text recommendation), so an agent knows exactly what it produces. It never names or distinguishes itself from near-neighbours such as color_contrast or color_palette, which is why 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 for theming and design checks' gives an implied context but no when-not conditions, no prerequisites, and no routing to color_contrast for contrast-specific work or color_palette for palette generation. The agent must infer the boundary from the purpose sentence 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