unit_convert
Convert numeric values across units for length, mass, volume, time, data size, and temperature. Give a value, source unit, and target unit to get the conversion.
Instructions
Convert a numeric value between units: length, mass, volume, time, data size, and temperature.
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": "unit_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit, e.g. "mi", "kg", "fahrenheit" | |
| from | Yes | Source unit, e.g. "km", "lb", "celsius" | |
| value | Yes | Numeric value to convert |