Fuel cost calculator
fuel_cost_calculatorCost of a journey or a year of driving for a petrol or diesel car. If price_per_litre_pence is omitted the latest UK average for that fuel is used.
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": {
"miles": "<miles>",
"mpg": "<mpg>"
},
"name": "fuel_cost_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpg | Yes | miles per gallon (UK gallons) | |
| fuel | No | petrol or diesel | |
| miles | Yes | distance in miles | |
| price_per_litre_pence | No | pence per litre, optional |