Convert units
convert-unitsConvert values between length, mass, volume, and temperature units, including metric and imperial options, by specifying the value and source/target units.
Instructions
Convert a value between units of length, mass, volume or temperature. Supported: mm, cm, m, km, in, ft, yd, mi, mg, g, kg, t, oz, lb, ml, l, m3, tsp, tbsp, cup, gal, c, f, k.
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 | Target unit, e.g. "mi" or "c" | |
| from | Yes | Source unit, e.g. "km" or "f" | |
| value | Yes | The number to convert |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| kind | Yes | ||
| value | Yes | ||
| result | Yes |