Unit Converter
UnitConverterUnit Converter: Unit Converter converts values between 185 units across 23 measures, from length, mass and volume to speed, pressure, data size, energy and electrical units. Pass a numeric value with source and target unit codes to get the converted result and unit abbreviations. On paid plans, precision sets the decimal places and conversions=true adds the value in every unit of the same measure. (Cost: 1 credit)
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": "UnitConverter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The unit to convert to | |
| from | Yes | The unit to convert from | |
| value | Yes | The value to convert | |
| precision | No | Decimal places to round results to, between 0 and 10 (default 2) | |
| conversions | No | Also return the value converted into every unit of the same measure |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |