Unit Converter
convert_unitsConvert a value between units of length, area, volume, mass, energy (kWh, MWh, BTU, GJ), power, pressure, temperature, speed, data size, time and compound units like kg/m^3 or mpg. Exact, no lookup tables to maintain.
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": "convert_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| to_unit | Yes | ||
| from_unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |