Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-ratio-simplify

Ratio Simplify: Simplify a ratio to lowest terms. Takes a (alias numerator) and b (alias denominator), b != 0. Returns simplified and gcd. 🆓 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-ratio-simplify"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bNo
numeratorNo
denominatorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / a / description
      Removed value: -"A to process"
    • removedInput schema / properties / b / description
      Removed value: -"B to process"
    • removedInput schema / properties / denominator / description
      Removed value: -"Denominator to process"
    • removedInput schema / properties / numerator / description
      Removed value: -"Numerator to process"
  2. First observed

TDQS

A3.5/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 two useful facts: the domain constraint b != 0 and the return shape (simplified plus gcd). It also hints at a paid x402 model with 5 free trial calls per signed wallet, but says nothing about what happens after the trial, whether signing is required, or error behavior on invalid input.

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 definition is front-loaded and short: purpose, parameter aliases, constraint, then return values. The trailing pricing note is relevant but slightly tacked on, and the emoji adds noise without information.

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 simple arithmetic tool with no output schema, the description names the return fields and the key constraint, which is most of what an agent needs. The remaining gaps (input string format, behavior when parameters are omitted or duplicated) are modest but real for a 4-parameter, all-optional schema.

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

Parameters3/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 for four string parameters with no documented meaning. It does explain the alias mapping (a = numerator, b = denominator) and the non-zero denominator rule, but leaves open the string format (e.g. "6"/"8" vs "6:8"), what happens when both alias pairs are supplied, and why nothing is marked required.

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?

"Simplify a ratio to lowest terms" is a specific verb plus resource, and the return values (simplified, gcd) are named. It does not distinguish itself from nearby siblings such as x402-lowercase-ratio or x402-quick-ratio, so an agent must infer which ratio tool applies.

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?

The only usage constraint given is b != 0, which is a validity rule rather than when-to-use guidance. There is no statement of when to prefer this over sibling ratio tools or what the tool is not for; usage is only implied by the tool name and purpose sentence.

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.