convert_units
Convert values between units for length, weight, temperature, data, time, and speed. Enter value, source unit, and target unit to get an instant conversion.
Instructions
Convert a value between units. Supported categories: length (m, ft, in, km, mi, cm, mm, yd), weight (kg, lb, oz, g, mg, ton), temperature (C, F, K), data (B, KB, MB, GB, TB), time (s, min, h, d, week), speed (m/s, km/h, mph, knots).
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", "kg", "F" | |
| from | Yes | Source unit, e.g. "km", "lb", "C" | |
| value | Yes | The numeric value to convert |