AllUnits Unit Conversion
v1.0.2Convert unit pairs with exact published factors.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
convert_unit
Convert a value between units of length, mass, temperature, pressure, data size, volume, speed, time or area. Accepts symbols or full names (km, kilometers, lb, pounds, °F, fahrenheit). Returns the rounded result, the exact factor and the page that documents the definition. Local computation, no API key needed.
| Parameter | Type | Description |
|---|---|---|
from * | string | Source unit, e.g. km, lb, °F, MB, cup |
to * | string | Target unit, e.g. mi, kg, °C, GB, mL |
value * | number | Numeric value to convert |
decimals | integer | Optional rounding override |
list_units
List the 30 supported conversion pairs, optionally filtered to one category.
| Parameter | Type | Description |
|---|---|---|
category | string | Optional category filter |
get_factor
Return the exact stored factor, offset and display precision for a pair, without converting a value.
| Parameter | Type | Description |
|---|---|---|
from * | string | |
to * | string |