convert_units
Convert dimensionful values such as '32 degF' or '120 km/hour' to compatible target units, rejecting dimensional mismatches as errors.
Instructions
Convert a dimensionful value such as 32 degF, 120 km/hour, or 5 psi to a compatible
target unit. Dimensional mismatches are errors rather than guessed conversions.
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>",
"to_unit": "<to_unit>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| precision | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Output unit, when dimensionful. | |
| exact | No | Exact symbolic result when available. | |
| result | Yes | Primary result; strings preserve mathematical precision. | |
| details | No | ||
| warnings | No | ||
| operation | Yes | Operation actually performed. | |
| approximate | No | Numerical approximation at the requested precision. | |
| normalized_input | No | Canonical input used by the computation engine. |