Skip to main content
Glama

Unit Converter API - length, weight, temperature, volume, area, speed

unit_converter
Read-onlyIdempotent

Convert between metric and imperial units: length, weight, temperature, volume (incl. cooking), area and speed. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/unit-converter.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "to": "mi",
      "from": "km",
      "kind": "length",
      "value": 10
    },
    "name": "unit_converter"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTo unit, e.g. mi, lb, F, gal, ft2, mph
fromNoFrom unit, e.g. km, kg, C, l, m2, kmh (see kind)
kindNoQuantitylength
valueNoValue to convert

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world behavior, yet the description adds real operational context the annotations cannot express: nothing is stored and files are deleted after the call, a free tier of 5 calls/day per IP, and two auth paths (X-API-Key or x402 payment). That said, the data-retention note is odd boilerplate for a pure unit converter and no error or rounding behavior is disclosed, so it stops short of a 5.

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?

Purpose is front-loaded in the first sentence, followed by privacy and pricing details in a compact block with no filler sentences. The pricing/URL material is somewhat promotional and takes more space than the conversion semantics, which slightly dilutes the useful content.

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 4-parameter tool with full schema coverage, annotations, and no output schema, the description covers what it converts, where it runs, and how to authenticate. It omits any indication of the response shape (converted value only, or also echoed units) and error behavior for unsupported or mismatched units, which an agent would want for a no-output-schema tool.

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 100% with examples for from/to/kind/value, so the baseline is 3 by rule. The description adds only one semantic hint beyond the schema — that volume includes cooking units — and nothing about unit aliasing, case sensitivity, or how temperature conversions interact with the value parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence gives a specific verb (convert) plus the exact resource scope, enumerating all six supported quantity kinds (length, weight, temperature, volume, area, speed), which separates it cleanly from siblings like case_converter, markdown_html_converter, or time_zone_converter. An agent can decide this is the right tool without opening the schema.

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 through the enumerated kinds and the example units; there is no explicit statement of when to prefer this tool over a sibling converter, nor any exclusion or precondition beyond the pricing/access notes. Adequate but leaves routing to inference.

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