Skip to main content
Glama

MoneyTools x402 agent toolkit

Color converter + WCAG contrast

color_convert
Read-onlyIdempotent

Convert hex/rgb/hsl/CSS names to hex, RGB, HSL, CMYK; luminance, best text color and WCAG AA/AAA contrast against another color. Free: 10 calls/day; then $0.001/call via x402 (MCP params._meta["x402/payment"] or HTTP) or X-API-Key credits. [served by tools.moneytools.dev]

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_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYescolor
againstNosecond color

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the bar is lower; the description still adds substantive behavior: a free tier of 10 calls/day, a $0.001/call price beyond it, and the two payment mechanisms (x402 via params._meta or HTTP, or X-API-Key credits). That rate limit and billing disclosure is exactly the kind of context annotations cannot express. It stops short of stating what happens on quota exhaustion or how payment failures surface.

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?

Capabilities are front-loaded in the first clause, with pricing and delivery mechanics after, so the agent gets purpose before cost. Dense but every sentence carries information. The payment sentence is somewhat packed with parenthetical syntax that could be separated, 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?

An output schema exists, so return values need no explanation, and the read-only annotations cover safety. What remains relevant for a paid, network-served utility — cost, quota, and payment channel — is all disclosed. Only the behavior at quota/payment failure is unstated.

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%, so baseline is 3, but the description genuinely sharpens the meaning of both params: `color` is the value being converted and `against` is the second color used for the WCAG AA/AAA contrast comparison. The schema itself only labels them "color" and "second color," so this adds real interpretability. Format syntax and accepted value patterns are still left to the schema examples.

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?

Opens with a specific verb and resource ("Convert hex/rgb/hsl/CSS names to hex, RGB, HSL, CMYK") and names the secondary capabilities (luminance, best text color, WCAG AA/AAA contrast). An agent knows exactly what the tool produces. It does not name or contrast itself with the convert siblings (unit_convert, currency_convert), though the color domain makes the distinction mostly self-evident.

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

Usage Guidelines2/5

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

There is no explicit when-to-use / when-not-to-use guidance and no named alternative. The only usage-adjacent content is the payment path, which explains how to call rather than when to choose this tool over a sibling converter.

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