convert_units
Convert a value between units of length, weight, or temperature.
Supported units:
Length: mm, cm, m, km, inch, ft, yard, mile
Weight: mg, g, kg, ton, oz, lb
Temperature: C, F, K (Celsius, Fahrenheit, Kelvin)
Both units must belong to the same category (e.g. km -> mile is valid, kg -> mile is not).
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_unit": "<from_unit>",
"to_unit": "<to_unit>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The numeric value to convert. | |
| to_unit | Yes | The target unit (e.g. "mile"). | |
| from_unit | Yes | The source unit (e.g. "km"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||