unit_convert
Convert a numeric value between compatible unit symbols, rejecting mismatched dimensions and quantity categories.
Instructions
Convert a value between compatible units. Rejects mismatched dimensions and quantity categories.
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 symbol. Examples: psi, m, N, degF. | |
| from | Yes | Source unit symbol. Examples: MPa, mm, lbf, degC. | |
| value | Yes | Numeric value to convert. |