{"uid":"cap_tEEkp1tIQWfnjFIiPGsbB","slug":"agenttools-fuel-cost-calculator-69c9db92","name":"AgentTools Fuel Cost Calculator","description":"Calculate the liters of fuel a trip needs and its total cost from distance, consumption (L/100 km) and price per liter — with optional cost splitting between passengers. Use this when an agent needs to trip fuel and cost, splitable between people.","url":"https://agenttools-hub.vercel.app/api/v1/calculators/fuel-cost-calculator?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["distance","consumption","pricePerLiter"],"properties":{"people":{"type":"number","description":"Split between"},"distance":{"type":"number","description":"Distance (km)"},"consumption":{"type":"number","description":"Consumption (L/100km)"},"pricePerLiter":{"type":"number","description":"Price per liter"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bWeoHcWGxk4R7DeLjJDuR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the total fuel needed (in liters) and cost for a trip given distance, fuel consumption rate, and price per liter, with optional cost splitting among passengers.","exampleAgentPrompt":"We're driving 350 km, our car does 7.5 L/100km, and fuel costs $1.89 per liter — can you calculate the total fuel cost and split it evenly among 3 people?","exampleUseCases":[{"title":"Road trip budget split","prompt":"We're doing a 600 km road trip with 4 friends. Our SUV uses 9.5 L/100km and gas is $1.75 per liter — how much will fuel cost in total and what does each person owe?"},{"title":"Solo commute fuel estimate","prompt":"I'm driving 220 km to visit my parents. My car consumes 6.8 L/100km and petrol is $2.10 per liter. What will the fuel cost me?"},{"title":"Carpool cost fairness check","prompt":"Our carpool covers 480 km round trip, the car gets 8 L/100km, and diesel is $1.65 per liter. There are 5 of us sharing — how much does each person owe for fuel?"}],"resultDescription":"Returns the total liters of fuel required for the trip and the total fuel cost in the currency matching the provided price per liter. If the optional 'people' parameter is supplied, also returns the cost split per person.","failureModes":["Missing required parameters (distance, consumption, or pricePerLiter) returns a 400 error","Non-positive or zero values for distance or consumption may produce invalid results","Providing non-numeric values causes a validation error","Network or server-side errors return a 5xx response"],"whenToPreferThis":"Choose this endpoint when an agent needs a quick, single-call computation for trip fuel volume and cost, especially when cost splitting among passengers is needed. It is ideal for travel planning agents, carpool coordination, or expense tracking workflows where the user provides distance, vehicle fuel efficiency, and local fuel price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:40:45.284Z","isFirstParty":false,"canonicalSlug":"agenttools-fuel-cost-calculator-69c9db92"}