Unit converter with exact factors (NIST SP 811) ($0.002/call)
unit_convert$0.002 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Data utilities] Converts a value between units exactly, with rational factors from NIST SP 811 and HB 44 (inch = 0.0254 m, pound = 0.45359237 kg, US gallon = 231 in3): length, area, volume (US and imperial), mass, temperature, time, speed and data size (kB vs KiB). Returns the exact fraction, a decimal, the factor and its source. Input: value (decimal, 1e6 or 1/3), from, optional to (default all), decimals. Offline.
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": "unit_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target unit of the same kind, or all (default): every unit of that kind | |
| from | Yes | Unit of the value, e.g. mi, km, lb, kg, F, C, GiB, MB, gal, l, mph, acre (symbols or names) | |
| trial | No | Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms. | |
| value | Yes | Number to convert: decimal (12.5), scientific (1e6) or fraction (1/3), up to 100 characters | |
| decimals | No | Decimal places in "value", 0-30 (default 12); "fraction" is always exact | 12 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | ||
| cache | No | ||
| input | No | ||
| notes | No | ||
| _trial | No | Present when the call was a free trial call. | |
| factor | No | ||
| result | No | ||
| results | No | ||
| decimals | No | ||
| provider | No | ||
| dimension | No | ||
| price_usd | No |