Skip to main content
Glama

x402_unitmath_get_v1_convert

Convert a numeric value from one unit to another, such as miles to kilometers, across nine measurement categories including length, mass, temperature, volume, and data.

Instructions

unitmath — Unit conversions across 9 categories (length, mass, temp, volume, area, speed, time, data, pressure, energy) [GET /v1/convert] $0.005 USDC on eip155:8453. Example: /v1/convert?value=100&from=mi&to=km

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load, and it does disclose the paid-call economics ('$0.005 USDC on eip155:8453') and the GET route — meaningful context an agent cannot get from schema alone. It says nothing, however, about failure modes, rate limits, or how the price is charged per attempt, leaving the retry semantics implied only by the schema's restart/operationId parameters.

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?

It is a single dense line with the identity, category scope, route, price, and a worked example — front-loaded and nearly waste-free. The '9 categories' versus ten listed items is a small accuracy cost, and the price/chain string is buried mid-sentence.

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 stateless arithmetic utility with a fully described schema and no output schema, the definition supplies what an agent needs: category scope, endpoint, pricing, and a concrete invocation example. Remaining gaps — the list of accepted unit symbols and the shape of the returned result — are modest given the tool's simplicity.

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 description coverage is 100%, so the baseline would be 3, but the description adds real value by revealing the concrete query keys (value, from, to) that the generic 'query' object in the schema does not name. It still does not enumerate valid unit tokens per category, so the agent must guess accepted abbreviations beyond the 'mi'/'km' sample.

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 names a specific verb+resource ('Unit conversions') and enumerates the domain categories, plus the underlying route [GET /v1/convert], so an agent knows exactly what the tool does. The only blemish is an internal inconsistency — it advertises '9 categories' but lists ten — which slightly undercuts precision in the scope statement.

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?

Usage is only implied: the embedded example query (?value=100&from=mi&to=km) shows how to invoke a conversion, but there is no explicit statement of when to prefer this tool, what to do with unsupported unit pairs, or any exclusions. Siblings are unrelated third-party APIs, so cross-tool routing guidance is less critical here, keeping this at a minimum-viable 3.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools