convert_units
Convert between temperature, length, and weight units. Specify value, source unit, target unit, and unit type for quick conversions.
Instructions
Convert between measurement units: temperature, length, or weight.
Use this for quick unit conversions without lookup tables.
Supports Celsius/Fahrenheit/Kelvin, meters/feet/inches/km/miles,
and kg/lb/oz/stone.
Parameters:
value — Numeric value to convert.
from_unit — Source unit (e.g. 'c', 'm', 'kg').
to_unit — Target unit (e.g. 'f', 'ft', 'lb').
unit_type — 'temperature' (default), 'length', or 'weight'.
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_unit": "<from_unit>",
"to_unit": "<to_unit>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| from_unit | Yes | ||
| to_unit | Yes | ||
| unit_type | No | temperature |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |