# AgentTools Fuel Cost Calculator

> AgentTools Fuel Cost Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Calculates the total fuel volume and cost for a road trip given distance, fuel consumption rate, and price per liter, with optional cost splitting across passengers.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/calculators/fuel-cost-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-fuel-cost-calculator-c5b41196
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ovNCym3zgnp2S3gK3cpZP

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-c5b41196
```

Example prompt: We're driving 450 km, the car uses 7.5 L/100 km, and fuel is $1.85 per liter — can you calculate how much fuel we'll need and split the total cost between 3 people?

## When to prefer this

Use this endpoint when an agent needs to compute fuel usage and cost for a specific road trip defined by distance, fuel consumption rate, and price per liter. It is especially useful when cost splitting between multiple passengers is required. Prefer this over generic calculator tools when the task is specifically fuel-cost estimation using L/100 km consumption units common in metric-system countries.

## Known failure modes

- Missing required parameters (distance, consumption, pricePerLiter) returns a 400 validation error
- Non-numeric or negative values for distance, consumption, or price may return an error or unexpected results
- Zero value for 'people' parameter may cause a division-by-zero error
- Network or payment authorization failure returns a 402 or 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 of the provided price per liter. If the 'people' parameter is supplied, also returns the cost per person after splitting equally.

## 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-c5b41196/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
