Unit converter: length, mass, volume, temperature, data…
util_unitsConvert a value between units in 11 categories: length, mass, volume (US + UK), area, speed, time, data size (kB vs KiB, Mbit), pressure, energy (kWh, kcal, BTU), power (hp, kW) and temperature (C, F, K, R). Accepts symbols or names (miles, °F, kilograms, sq ft). One target, a comma list, or all units of the category. Exact factors (NIST/SI); 12 significant digits. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.
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": "<from>"
},
"name": "util_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target unit(s), comma-separated, e.g. C or km,m (default: all units of that category) | |
| from | Yes | Source unit, e.g. F, miles, kg, GiB, psi | |
| value | Yes | Number to convert, e.g. 72 |