convert_units
Convert numeric values between units of measurement for length, weight, temperature, area, and volume. Specify value and units to get the result.
Instructions
Convert a value between units of measurement.
Supports length, weight, temperature, area, and volume. Category is auto-detected from unit names.
Args: value: The numeric value to convert from_unit: Source unit (e.g. "km", "kg", "celsius", "gal", "ft2") to_unit: Target unit (e.g. "mi", "lb", "fahrenheit", "l", "m2") category: Optional: "length", "weight", "temperature", "area", "volume"
Returns: dict with keys: value, from_unit, to_unit, result, category, cost_usd
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 | ||
| category | No | ||
| from_unit | Yes |