Convert units
convert_unitsConvert values between units of length, mass, time, volume, energy, temperature, pressure, speed, or flow rate. Accepts common spellings; rejects incompatible unit types.
Instructions
Convert a value between units of length, mass, time, volume, energy, temperature, pressure, speed or flow rate. Common spellings like ml, degC, °C and L/min are accepted. It refuses to convert one kind of unit into another.
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 | The unit to convert it to. | |
| from | Yes | The unit it is in, like km, kg, mL, J, C, atm, km/h or L/min. | |
| value | Yes | The number to convert. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |