convert_units
Convert numeric values between common units of length, weight, temperature, and volume. Supports conversions like km to mi, kg to lb, Celsius to Fahrenheit, and liter to gallon.
Instructions
Convert a numeric value between common units of length, weight, temperature, or volume.
Examples: km<->mi, kg<->lb, celsius<->fahrenheit, liter<->gallon.
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 | The numeric value to convert. | |
| to_unit | Yes | Unit to convert to, e.g. "mi", "kg", "fahrenheit", "liter". | |
| from_unit | Yes | Unit to convert from, e.g. "km", "lb", "celsius", "gallon". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |