convert_units
Convert exact values between units, including compound units, SI and binary prefixes, temperatures, and currencies, with optional rate dates, rounding, and temperature differences.
Instructions
Exact unit conversion: compound units (km/h, J/(kg*K), L/100km<->mi/gal), SI/binary prefixes, temperatures (degC/degF/K; difference for intervals), currencies (ECB, 3-letter codes). No to = SI base.
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": {
"from": "<from>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| date | No | currency rate date | |
| from | Yes | ||
| value | No | default 1; expression ok | |
| digits | No | ||
| difference | No |