convert_unit
Convert any numeric value between physical units for length, weight, temperature, volume, and time.
Instructions
Convert quantities between physical units (length, weight/mass, temperature, volume, time).
Examples:
convert_unit(100, "degC", "degF") -> Fahrenheit
convert_unit(5, "km", "miles") -> Miles
convert_unit(2, "hours", "sec") -> Seconds
Args: value: Numerical value to convert from_unit: Source unit string (e.g., 'km', 'miles', 'kg', 'lbs', 'degC', 'degF', 'hr', 'sec') to_unit: Target unit string
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_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| from_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |