Skip to main content
Glama

Unit conversion: convert between units of length, weight, temperature, volume, speed and more

units_convert
Read-only

Convert between units of length, mass, volume (incl. US cups and gallons), temperature (c, f, k), speed, area, data size (kB vs KiB), time, energy and pressure. Example units: km, mi, lb, kg, floz, ml, mph, kn, acre, gib, kwh, psi. Use when exact conversions matter. Example: value=10, from=km, to=mi. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
toYesUnit to convert to
fromYesUnit to convert from
valueYesThe amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces that with "reads or computes only and changes nothing." It adds genuinely non-structured context: per-call pricing ($0.01 via x402 USDC or card key), the first 25 free, failed calls free, and that repeats are billed — which is the practical meaning behind idempotentHint=false. Return format is not described, but a conversion tool's output is self-evident.

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?

Front-loaded with the supported categories, then example units, then usage, then pricing. Every sentence carries information, though the trailing pricing/auth sentence is dense and bundles cost, auth method, free tier, and refund policy into one run-on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, fully-required, deterministic tool with no output schema, the description covers supported domains, unit syntax, an example call, and the payment model. An agent has everything needed to invoke it correctly and to know it will be billed.

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, but the description earns above baseline by giving the accepted unit token vocabulary ("km, mi, lb, kg, floz, ml, mph, kn, acre, gib, kwh, psi") and a concrete example mapping value=10, from=km, to=mi. That tells the agent the expected casing/abbreviation form, which the schema's "Unit to convert from/to" strings do not.

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+resource ("Convert between units") and enumerates the supported measurement families — length, mass, volume, temperature, speed, area, data size, time, energy, pressure — plus concrete example unit tokens (km, mi, floz, gib, psi). No sibling tool in the list overlaps, so an agent can select it unambiguously.

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?

"Use when exact conversions matter" gives a positive selection condition, and the worked example shows the call shape. However, there is no exclusion guidance — nothing about when to prefer math_evaluate for arithmetic, and no stated limits on supported units beyond the examples.

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.