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

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.