Skip to main content
Glama

x402 Toolbox

Convert between units: length, mass, volume, area, speed, time, data, pressure, energy, power, temperature, angle

unit_convert
Read-onlyIdempotent

Convert between units: length, mass, volume, area, speed, time, data, pressure, energy, power, temperature, angle. Exact-factor conversion across 12 dimensions and 140+ units (SI, imperial, US customary, IEC binary data sizes). Temperature handles offsets (C, F, K, R). Pass to=all to get every unit of the same dimension. Price: $0.003 USDC per call via x402 (eip155:8453).

Input Schema

NameRequiredDescriptionDefault
toYesTarget unit, or "all"
fromYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful non-schema behavior: exact-factor conversion for 140+ units, temperature offset handling, the 'to=all' mode, and the $0.003 USDC x402 price.

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 description is front-loaded with the core purpose and then adds scope, special cases, and pricing in a compact paragraph. The first sentence largely repeats the title, but overall it is efficient and easy to scan.

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?

The tool has three required parameters, low schema coverage, and no output schema, so the description should carry more weight. It covers dimensions, special temperature handling, and the 'to=all' mode, but it omits return-shape details and does not clarify how unit strings are formatted or how invalid units are handled.

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 only 33%: only the 'to' parameter is documented in the schema. The description partially compensates by listing supported dimensions, unit families, temperature offset units, and 'to=all' behavior, but it does not explain accepted string formats for 'from' or what 'value' represents beyond being numeric.

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: 'Convert between units' and enumerates 12 supported dimensions. It is clear what the tool does, but it does not distinguish itself from siblings like time_convert, currency_convert, or evm_units, which also handle unit-like conversions.

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?

The description explains how to use the 'to=all' option but gives no guidance on when to use this tool versus alternatives such as time_convert or currency_convert. An agent must infer tool selection from the name and dimension list 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.