convert_unit
Convert between listed measurement units using a conversion ID or from/to unit pair. Get exact converted values for supported unit conversions.
Instructions
When: convert between listed measurement units (not free-form dimensional analysis). Params: value; either conversion_id OR from_unit+to_unit. Call list_unit_conversions first if unsure. Example: value=1, conversion_id="mile_to_km".
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>"
},
"name": "convert_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | No | ||
| from_unit | No | ||
| conversion_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |