Convert units
convert_unitsConvert a number between any two units of the same quantity. Covers about 1,200 units, the same as the unit converters on arteontools.com: length, mass and weight, volume, area, speed and pace, pressure, screen and print pixels (px, dp, pt at a DPI), typography (pt, pica, em, rem, Didot), data size (bit to quettabyte, KiB, MiB) and data transfer speed (Mbps, MB/s, USB and Wi-Fi links). Units can be symbols (cm, ft, lb, kPa, mph, MB/s), English names ("square feet", "US gallon", "nautical mile") or names in the chosen language, including historic units such as the Roman foot or the Polish ell. Results between exactly defined units are exact to 15 significant digits; "approximate": true marks units without one exact value. If both units exist in several quantities, the answer names the one used and lists otherQuantities; pass quantity to choose.
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>",
"to": "<to>"
},
"name": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target unit symbol, name or id from list_units, for example in. | |
| dpi | No | Pixels per inch for device pixels (quantity pixels), 1 to 2400, default 96. | |
| from | Yes | Source unit symbol, name or id from list_units, for example cm. | |
| value | Yes | The number to convert, for example 12.5. | |
| locale | No | Language of the returned tool page link and of the text rules, one of: pl, en, de, es, fr, pt, it, cs, ar, id, tr, el, uk, ro, th, ja, vi, hi. Defaults to en. | |
| quantity | No | Quantity to use when both units exist in several, for example pixels or typography for cm to pt. | |
| temperature | No | Air temperature in °C for Mach numbers (quantity speed), -90 to 60, default 15. | |
| dataStandard | No | For KB, MB, GB and their speeds: binary counts in steps of 1024 like Windows, decimal in steps of 1000 like drive makers. Defaults: binary for data size, decimal for transfer speed. | |
| rootFontSize | No | Font size of the html element in px for rem (quantity typography), 1 to 100, default 16. | |
| parentFontSize | No | Font size of the parent element in px for em (quantity typography), 1 to 200, default 16. |