Skip to main content
Glama

Agent Data Tools: Utilities

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 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not 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>",
      "to": "<to>"
    },
    "name": "units_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesUnit to convert to
fromYesUnit to convert from
valueYesThe amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 ("Reads or computes only and changes nothing"). The genuine added value is commercial behavior: per-call pricing via x402 USDC or a card key, first 10 free, failed calls free, and the warning that repeats are not free because each call is charged. It stops short of describing return format or rounding behavior.

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 dimensions and units before the commercial terms, which is the right order. The charging rule is stated twice ("Price $0.01/call... failed calls free" then "each call is charged, so repeats are not free"), a minor redundancy in an otherwise dense, waste-free description.

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?

Three required parameters, no nested objects, no output schema, and full schema coverage, so the description need only carry scope, unit vocabulary, and cost. It does all three; the only missing piece is a hint about the returned value's form or precision, which matters for a conversion tool with no output schema.

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% and the from/to parameters are plain strings with no enums, so the description's list of example unit tokens (km, mi, lb, kg, floz, ml, mph, kn, acre, gib, kwh, psi) and its value/from/to example fill a real gap by showing the expected unit-string vocabulary. It does not state whether aliases like "floz" vs "fl_oz" or case (c, f, k) matter.

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 between units of length, mass, volume... temperature, speed, area, data size, time, energy and pressure") and enumerates supported dimensions with representative unit tokens. No sibling tool in the catalog covers conversion, and the scope is unambiguous 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 Guidelines4/5

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

Gives an explicit usage condition ("Use when exact conversions matter") plus a worked invocation example (value=10, from=km, to=mi). It does not name an alternative tool or state when not to use it, but no plausible alternative exists among the siblings, so the guidance is adequate.

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