# AgentTools Fuel Cost Calculator

> AgentTools Fuel Cost Calculator is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

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.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/calculators/fuel-cost-calculator?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-fuel-cost-calculator-69c9db92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tEEkp1tIQWfnjFIiPGsbB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agenttools-fuel-cost-calculator-69c9db92
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-fuel-cost-calculator-69c9db92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
