convert_units
Convert numeric values between units of temperature, length, and weight. Specify value, source unit, and target unit to get the conversion.
Instructions
Convert between units.
Args: value: Numeric value to convert from_unit: Unit to convert from to_unit: Unit to convert to
Supported conversions:
Temperature: celsius, fahrenheit, kelvin
Length: meter, kilometer, mile, foot, inch
Weight: kilogram, gram, pound, ounce
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 | ||
| to_unit | Yes | ||
| from_unit | Yes |