Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-contrast-ratio

Contrast Ratio: WCAG contrast ratio between two hex colours. Takes color1 and color2 (defaults #ffffff and #000000). Returns ratio, aa and aaa. 🆓 5 free trial calls per signed wallet

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "x402-contrast-ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgNo
fgNo
color1No
color2No

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / bg / description
      Removed value: -"Bg to process"
    • removedInput schema / properties / color1 / description
      Removed value: -"Color1 to process"
    • removedInput schema / properties / color2 / description
      Removed value: -"Color2 to process"
    • removedInput schema / properties / fg / description
      Removed value: -"Fg to process"
  2. First observed

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the return fields (ratio, aa, aaa) plus default values and a 5-call free trial per signed wallet — useful operational context that annotations would normally supply. It omits validation behaviour for malformed hex input, the errors returned, and what happens when the trial is exhausted or the wallet is unsigned.

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?

The core behaviour is front-loaded in the first sentence and the defaults and return fields follow logically, with no rambling. Minor waste: the 'Contrast Ratio:' label repeats the tool name, and the emoji pricing line is stylistically noisy though it carries real information.

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

Completeness3/5

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

For a four-parameter, no-annotation tool the description covers purpose, defaults, and return values, which is decent. The significant gap is the undocumented bg/fg parameters alongside color1/color2, which leaves the calling contract ambiguous for half the schema.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only documents color1 and color2 with their defaults (#ffffff, #000000). The bg and fg parameters — half the schema — are never mentioned anywhere, leaving an agent unable to tell whether they are aliases, overrides, or required for correct output.

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 — computing the WCAG contrast ratio between two hex colours — and even names the standard used, so an agent knows exactly what it gets back conceptually. It does not explicitly distinguish itself from the many sibling *-ratio tools, so an agent must infer that this is the colour/accessibility one rather than a numeric ratio utility.

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 when-to-use guidance, no when-not-to-use guidance and no named alternative; the WCAG mention implies an accessibility use case but nothing is stated. The only contextual note is the free-trial quota, which is pricing, not usage selection.

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.