Skip to main content
Glama

Convert units

convert_units
Read-onlyIdempotent

Convert a numeric value from one unit to another. Accepts unit names, symbols or aliases (e.g. 'km', 'miles', 'tola'). Both units must belong to the same measurement category.

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

Input Schema

NameRequiredDescriptionDefault
toYesTarget unit name, symbol or alias.
fromYesSource unit name, symbol or alias.
valueYesThe numeric value to convert.
precisionNoSignificant decimal digits (default 10).
categoryIdNoOptional category id to disambiguate units that exist in several categories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 structurally. The description adds the same-category behavioral constraint and the alias-tolerant input handling, but says nothing about what happens on a cross-category mismatch (error vs. coercion) or what the returned value looks like.

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 short sentences, front-loaded with the action and followed by the constraint; nothing is padded. The inline examples ('km', 'miles', 'tola') are compact and illustrative, though 'tola' is an unusual choice for a general example.

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?

With full schema coverage, three required params, no nested objects and no output schema, the description covers what an agent needs to form a valid call. It falls short only on failure behavior for category mismatches and on how precision affects 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 100%, so from/to/value/precision/categoryId are already documented, making 3 the baseline. The description's mention of symbols and aliases largely restates the schema, though the same-category rule does give indirect rationale for categoryId's disambiguation role.

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?

The description gives a specific verb and resource (convert a numeric value between units) and adds the key constraint that both units must share a measurement category. It does not name or distinguish itself from the discovery siblings (list_units, search_units), so an agent gets no explicit routing signal, but the operation itself is unambiguous.

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?

It states a precondition (same measurement category) that governs when a call will succeed, which is genuinely useful. However, it never says when to prefer this over the sibling lookup tools, nor how to resolve a category mismatch (other than the unexplained categoryId parameter), leaving usage guidance implied rather than explicit.

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.