Unit Converter
unit_convertConvert a value from one unit to another within one kind of measure: length (mm, cm, m, km, in, ft, yd, mi, nmi), mass (mg, g, kg, t, oz, lb, st, short_ton, long_ton), volume (ml, l, m3, cm3, in3, ft3, yd3, fl_oz_us, pt_us, qt_us, gal_us, fl_oz_imp, pt_imp, qt_imp, gal_imp), area (mm2, cm2, m2, ha, km2, in2, ft2, yd2, acre, mi2), energy (j, kj, mj, wh, kwh, cal_th, kcal_th, cal_it, kcal_it, btu_it, ft_lbf), pressure (pa, hpa, kpa, mpa, bar, atm, torr, mmhg, psi) or temperature (degc, degf, k, degr). Send the value, from_unit and to_unit. Get back the converted value, the exact factor used (as a fraction and a decimal), and whether the value is exact or rounded. Temperature reads the value as a thermometer reading by default; send temperature_as difference for a temperature change (10 degC of warming is 18 degF of warming, not 50). Answer fields: ok, verdict, result, rule, does_not, sources, observation, signature, verify. Errors: ok false with the reason (bad input, too large, hourly limit). Free. No model, no network, nothing you send is stored by the tool, and every answer is signed with LLPRO's key (check it at https://llpro.ai/unit-convert). Not legal, tax or financial advice.
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": "unit_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The number to convert (up to 15 digits and 6 decimals). | |
| to_unit | Yes | Unit to convert to. It must measure the same thing as from_unit. | |
| from_unit | Yes | Unit the value is in (code from the lists in the tool description; case does not matter). | |
| temperature_as | No | Temperature units only. reading (default): a thermometer reading. difference: a change in temperature (no offset). | |
| significant_digits | No | Digits kept when the exact value does not end (default 12). Ignored when the answer is exact. |