Skip to main content
Glama

util_convert

Read-only

Unit converter — Convert between units of length, mass, volume, area, speed, temperature, data, time, energy and pressure. Pass ?value=, ?from= and ?to=. Price: $0.001 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
toYestarget unit, e.g. km
fromYessource unit, e.g. mi
valueYesnumber to convert

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower. The description adds a genuinely useful behavioral fact the annotations do not carry: the call costs $0.001 USDC on Base via x402, which matters for invocation decisions. It says nothing about incompatible-unit errors, accepted unit spellings/aliases, or precision/rounding.

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?

Two sentences, purpose front-loaded, categories listed compactly. The 'Pass ?value=, ?from=, ?to=' clause is largely redundant with the schema and could be dropped to tighten it further.

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 three-parameter, fully documented schema this covers the essentials plus cost. However, with no output schema, the description should say what comes back (a converted value string, a unit echo) and how incompatible units are handled; that gap is the main incompleteness.

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%, so the schema already documents all three parameters with examples ('km', 'mi', 'number to convert'). The description's '?value=, ?from=, ?to=' adds only query-string syntax, not meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

Uses a specific verb+resource ('Unit converter — Convert between units') and enumerates the supported dimensions, so an agent knows exactly what it does. It does not distinguish itself from the sibling time_convert even though 'time' is listed as a supported category, leaving a small ambiguity about which tool to use for time units.

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

Usage Guidelines2/5

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

No guidance on when to use this versus util_calc or time_convert, and no prerequisites or exclusions. The only invocation instruction is 'Pass ?value=, ?from= and ?to=', which restates the schema rather than routing the agent.

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