convert_units
Convert a value between units of one category (length, mass, temperature, area, volume, speed, data and 60 more). Names, symbols and common spellings work ("m", "ft", "lbs", "°C"). category is optional when the two units identify it; an unknown unit returns the category's unit list. Example: {"value":10,"from":"Meter","to":"Foot"}.
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 (name or symbol). | |
| from | Yes | Source unit (name or symbol). | |
| value | Yes | Numeric value to convert. | |
| category | No | Unit category, e.g. length, mass, temperature, area, volume, speed. Optional when from/to belong to only one category; an unknown category returns the list of all 67. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| value | Yes | ||
| result | Yes | ||
| category | Yes |