Convert units (length, mass, volume, temperature and more)
convert_unitsConverts a value between units in one category: length, mass, volume (US and imperial), area, speed, temperature, data (decimal KB/MB and binary KiB/MiB), time, energy and pressure. Accepts symbols or names ('lb', 'pounds', 'sq ft', '°F'). Uses exact definitions where they exist.
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
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | One or more target units, e.g. ['km', 'm']. | |
| from | Yes | Unit to convert from, e.g. 'mi'. | |
| value | Yes | The number to convert. |