Convert UK Reporting Units
convert_uk_unitsZero-LLM-cost deterministic unit converter using UK statutory constants (miles<->km, UK imperial gallons<->litres, therms/MWh/GJ/m3_gas<->kWh, short_ton<->tonne, lbs<->kg, ft2<->m2). Use before calculate_emission when invoice units differ from the factor's uom.
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_uk_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Numeric quantity to convert. | |
| to_unit | Yes | Target unit (e.g. 'kWh', 'litres', 'km', 'kg'). | |
| from_unit | Yes | Source unit (e.g. 'm3_gas', 'therms', 'gallons', 'miles', 'MWh', 'lbs'). |