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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| category | No | ||
| from_unit | Yes |