Skip to main content
Glama

QuickUnits

Convert a value between units

convert_units

Convert a number from one unit to another and return the exact factor, whether the factor is exact by definition, and the URL of the page that explains it. Supports linear units (length, mass, volume, energy, …) and temperature. Currency is deliberately not supported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesUnit key to convert to, e.g. "ft", "m", "lb", "F".
fromYesUnit key to convert from, e.g. "m", "ft", "kg", "C".
langNoOptional language for the framing lines of the response, as a BCP-47 tag such as "sv", "sv-SE", "de" or "zh-TW". Pass the language you are answering the user in, so the citation line comes back in that language. Values, unit symbols and the URL are always unchanged.
valueYesThe number to convert.
categoryNoOptional category id (length, mass, volume, …). Only needed when the same unit key exists in more than one category.

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.

Resources