convert_units
Convert a numeric value between two units of the same category (length, weight, volume, temperature, etc.). Units resolve by id or symbol (e.g. "cm" or "centimeter"). For currency use convert_currency.
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 | Target unit id or symbol. | |
| from | Yes | Source unit id or symbol. | |
| value | Yes | ||
| category | No | Optional category id to disambiguate. |