Fuel Cost Calculator
fuel_costCalculate trip fuel quantity and cost from entered distance, fuel economy, fuel price and currency; supports US mpg, L/100 km and km/L.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"price": 4,
"units": "us_mpg",
"economy": 30,
"currency": "USD",
"distance": 300
},
"name": "fuel_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Entered price per US liquid gallon for us_mpg, per liter otherwise. | |
| units | Yes | Unit system; Imperial mpg not accepted. | |
| economy | Yes | Positive US mpg, L/100 km or km/L as selected. | |
| currency | Yes | Entered three-letter currency label (letters only), shared by all prices; no exchange rates. | |
| distance | Yes | Nonnegative miles for us_mpg; kilometers otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||