Fuel cost calculator
fuel_cost_calculatorFuel needed and trip cost. system=metric: distance km, consumption L/100km. system=imperial: distance miles, consumption mpg. Runs on smart-tools.xyz.
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": {
"distance": "<distance>",
"consumption": "<consumption>",
"fuel_price": "<fuel_price>"
},
"name": "fuel_cost_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Language for the source_url link (default en) | |
| system | No | Unit system (default metric) | |
| distance | Yes | Trip distance | |
| fuel_price | Yes | Price per litre or per gallon | |
| consumption | Yes | L/100km (metric) or mpg (imperial) |