Skip to main content
Glama

Convert units

convert_units
Read-onlyIdempotent

Convert length, mass, volume, temperature, area, speed, time, and data size. Decimal bytes (kB, MB) and binary bytes (KiB, MiB) are separate categories.

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": {
      "category": "<category>",
      "from": "<from>",
      "to": "<to>",
      "value": "<value>"
    },
    "name": "convert_units"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesTarget unit id from the same category.
fromYesSource unit id, such as m, C, MB, or MiB.
valueYes
categoryYes
precisionNo

Output Schema

NameRequiredDescriptionDefault
rowsYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety and repeatability are covered by structured data. The description adds only the category-separation constraint and says nothing about output formatting, rounding behavior, or how the precision parameter affects results. With annotations doing the heavy lifting, a 3 is appropriate but no more.

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 dense sentences with no filler, and the supported-domain list is front-loaded where an agent scanning for relevance will see it. The second sentence is terse to the point of being cryptic ('separate categories' only parses if the reader already suspects the enum values), which keeps it from a 5.

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?

An output schema exists, so return-value explanation is not owed, and annotations cover the safety profile. What remains thin is unit identification: the agent is told unit ids look like 'm, C, MB, or MiB' but is never told which ids are valid per category or that precision defaults to 6, which matters for a converter with four required parameters.

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 40% across five parameters; from and to have brief schema descriptions while value has none and precision only has default/min/max. The description partially compensates for the 'category' enum by explaining the data-decimal vs data-binary distinction, but adds nothing about value type coercion, negative temperatures, or what precision actually applies to. This is roughly baseline for a low-coverage schema, not a compensating description.

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?

Starts with a specific verb ('Convert') and enumerates the supported resource domains (length, mass, volume, temperature, area, speed, time, data size), which lets an agent separate it from convert_currency, convert_color, or convert_case. It stops short of naming any sibling or stating scope boundaries explicitly, so the differentiation is inferential rather than declared.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no mention of prerequisites. The one piece of routing help is the note that decimal bytes (kB, MB) and binary bytes (KiB, MiB) are separate categories, which implicitly tells the agent to pick data-decimal vs data-binary correctly, but that is guidance about one parameter rather than about tool selection.

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.