Skip to main content
Glama

Lookup Kit

unit_convert

Read-only

Unit conversion, unit converter (metric, imperial, temperature, cooking). Convert between units of length, weight, volume (including cooking cups and spoons), area, speed, time, data size, pressure, energy and temperature. E.g. value=5&from=mi&to=km, or 100 f to c. Price: $0.002 per call (x402, USDC on Base).

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": "unit_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds genuinely useful behavior beyond the annotations: the call is metered at $0.002 and paid via x402/USDC on Base, which an agent must know before invoking. The readOnlyHint=true annotation is consistent with a pure computation. One tension is left unresolved: openWorldHint=false while the description describes an external paid settlement call, and nothing is said about behavior on unknown or ambiguous unit tokens (the schema allows any 1-30 char string).

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 operation and the supported unit categories, then examples, then pricing — a sensible order for an agent scanning for relevance. The opening 'Unit conversion, unit converter' is mild keyword-stuffing that repeats the same idea, but the remainder of the text is dense and earns its space.

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?

For a simple three-parameter tool the coverage is mostly adequate, and the cost disclosure is a real plus. With no output schema, though, the description never says what comes back — a bare number, a string with the unit appended, or a structured object — which leaves an agent guessing how to consume the result.

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 0%, so the description carries the full burden, and it partially does: the examples show that 'from'/'to' take short unit symbols (mi, km, f, c) and that 'value' is the numeric magnitude, including a shorthand '100 f to c' form. It stops short of saying whether long names ('miles'), case variations, or ambiguous symbols are accepted, which matters given the free-form 30-char strings.

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) and enumerates the supported dimensions: length, weight, volume including cooking measures, area, speed, time, data size, pressure, energy, temperature. The two worked examples ('value=5&from=mi&to=km', '100 f to c') make the operation concrete rather than tautological.

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 implied rather than stated: an agent can infer it should call this when converting a physical quantity, and the examples show the expected call shape. However, no guidance distinguishes it from siblings that overlap the stated scope — notably currency_convert, time_convert, and format_convert — and 'time' is listed as a supported dimension without saying which tool wins for time conversion.

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