Skip to main content
Glama

Agent Data Hub

Unit converter: length, mass, volume, temperature, data…

util_units
Read-onlyIdempotent

Convert a value between units in 11 categories: length, mass, volume (US + UK), area, speed, time, data size (kB vs KiB, Mbit), pressure, energy (kWh, kcal, BTU), power (hp, kW) and temperature (C, F, K, R). Accepts symbols or names (miles, °F, kilograms, sq ft). One target, a comma list, or all units of the category. Exact factors (NIST/SI); 12 significant digits. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "value": "<value>",
      "from": "<from>"
    },
    "name": "util_units"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoTarget unit(s), comma-separated, e.g. C or km,m (default: all units of that category)
fromYesSource unit, e.g. F, miles, kg, GiB, psi
valueYesNumber to convert, e.g. 72

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the cost model ($0.001 per call, USDC on Base via x402), the free tier (10 calls/day), and the output precision (12 significant digits, exact NIST/SI factors). The payment/auth requirement is exactly the kind of behavior an agent must know before invoking a metered tool.

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?

One dense paragraph, front-loaded with the capability and category list, with payment terms correctly placed last. The parenthetical unit examples are slightly cluttered but each earns its place by disambiguating accepted formats.

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 three-parameter, fully documented tool with no output schema, this covers inputs, precision, and cost adequately. It never states the shape of the response (single value vs. list of pairs when converting to all units), which is the one remaining gap for a multi-mode tool.

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 coverage is 100%, so the baseline is 3; the description adds genuine meaning by stating that units accept symbols or names (miles, °F, kilograms, sq ft) and that a multi-unit comma list is valid, which the schema only partially conveys via examples. It also flags US vs UK volume ambiguity, which affects which unit string to pass.

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?

States a specific verb and resource ('Convert a value between units') and enumerates the 11 concrete categories and unit classes covered, which cleanly separates it from sibling utilities such as util_calc, util_date_calc, or util_text_stats. An agent can decide relevance from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explains the three invocation modes explicitly: 'One target, a comma list, or all units of the category', which tells the agent how to shape a request. It does not name an alternative tool or state exclusions (e.g., arithmetic vs conversion), so it stops short of full when/when-not guidance.

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