Convert units (length, mass, volume, area, speed, data...)
unit_convertExact unit conversion across length, mass, volume, area, speed, time, data size (SI and binary), energy, pressure, power and temperature using standard definitions.
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 | |
| from | Yes | Unit, e.g. mi, kg, gal, f, mb | |
| value | Yes | Number to convert |