Convert Units
convert_unitsConvert between units: length, weight, temperature, volume, time, etc. Returns converted value. E.g., "5 m to ft", "100 kg to lbs", "32 degF to degC". Use for unit conversions.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"to": "ft",
"from": "m",
"value": 5
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit (e.g., "cm", "lbs", "fahrenheit", "km/h") | |
| from | Yes | Source unit (e.g., "inches", "kg", "celsius", "mph") | |
| value | Yes | Numeric value to convert (e.g., 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The target unit | |
| input | Yes | The input value with source unit | |
| output | Yes | The converted value with target unit |