Skip to main content
Glama

NeatAnswer

unit_convert

Read-only

Convert length, mass, volume (US units), area, speed, data size or temperature (c, f, k).

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
toYesUnit, e.g. km, lb, l, c
fromYesUnit, e.g. mi, kg, gal, f
valueYesNumber to convert

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered and the description needn't restate it. It adds a useful behavioral constraint (US units for volume) and the accepted temperature scales, but says nothing about the return format, numeric precision, or how invalid units are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence listing the supported categories with no filler. Nothing could be cut without losing scope information.

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 read-only computation tool with fully documented parameters, the description is nearly sufficient. The gap is the absent output description (no output schema either) and any note on case-insensitivity or invalid-unit behavior, which an agent would want before calling.

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 all three parameters are already documented with examples (km, lb, l, c / mi, kg, gal, f). The description only adds 'c, f, k' for temperature and the US-unit convention, which is marginal on top of the schema.

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?

Names a specific verb (Convert) and resource (units), then enumerates the supported dimensions: length, mass, volume, area, speed, data size, temperature. None of the sibling calculators perform unit conversion, so an agent can pick this out immediately.

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 only implied by the enumerated measurement categories; there is no explicit statement of when to prefer this tool or when a dedicated sibling (e.g. percent_change, add_days) applies instead. The parenthetical '(US units)' and '(c, f, k)' give partial scoping for ambiguous inputs.

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