{
  "title": "Fuel cost calculator",
  "human_url": "https://happytails.ai/en/calculators/fuel-cost-calculator/",
  "agent_url": "https://happytails.ai/agents/en/calculators/fuel-cost-calculator/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/calculators/fuel-cost-calculator.md",
  "content": "Fuel cost calculator\nEstimate the fuel bill before you leave.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Fuel cost calculator\nEnter the values you want to calculate and choose the relevant units or settings.\nThe result updates as you type. Adjust the available settings if needed.\nReview the result, then use Copy result or a download link when available.\nUseful next steps\nKm to miles\nLiters to gallons\nPercentage\nHow to use it\nChoose kilometres with litres per 100 km, or miles with US miles per gallon. Then enter trip distance, fuel consumption and the price per matching fuel unit.\nA worked example\nA 300 km trip at 7 L/100 km uses 21 litres. At 1.50 per litre, the estimated fuel cost is 31.50.\nWhat to know\nMiles-per-gallon mode uses US gallons, not imperial gallons. The result excludes tolls, parking and other trip costs. Real fuel consumption varies with route, vehicle and driving conditions.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Km to miles",
      "url": "https://happytails.ai/en/unit-converters/km-to-miles/"
    },
    {
      "name": "Liters to gallons",
      "url": "https://happytails.ai/en/unit-converters/liters-to-gallons/"
    },
    {
      "name": "Percentage",
      "url": "https://happytails.ai/en/calculators/percentage/"
    }
  ],
  "tool": {
    "id": "fuel-cost-calculator",
    "category": "calculators",
    "built": true,
    "requirements": "Miles-per-gallon mode uses US gallons, not imperial gallons. The result excludes tolls, parking and other trip costs. Real fuel consumption varies with route, vehicle and driving conditions.",
    "implementation": {
      "fields": [
        {
          "key": "units",
          "label": "Distance and consumption",
          "value": "Kilometres / L per 100 km",
          "type": "select",
          "values": [
            "Kilometres / L per 100 km",
            "Miles / US miles per gallon"
          ]
        },
        {
          "key": "distance",
          "label": "Trip distance",
          "value": 300,
          "type": "number",
          "min": 0,
          "max": 1000000000,
          "step": "any"
        },
        {
          "key": "efficiency",
          "label": "Fuel consumption",
          "value": 7,
          "type": "number",
          "min": 0.001,
          "max": 1000000,
          "step": "any"
        },
        {
          "key": "price",
          "label": "Price per litre or US gallon",
          "value": 1.5,
          "type": "number",
          "min": 0,
          "max": 1000000,
          "step": "any"
        }
      ],
      "input": false,
      "live": true,
      "presentation": "metrics",
      "note": "Match the distance, consumption and fuel-price units to the selected mode. This estimates fuel only, without tolls, parking or route data.",
      "experience": {
        "automatic": true,
        "single": false,
        "inputMaxLength": 1000000,
        "inputMode": "text",
        "label": "Your text",
        "placeholder": "Type or paste your input…",
        "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
        "action": null
      },
      "mode": "automatic",
      "interactive": false
    },
    "execution": "Browser interface",
    "api": null,
    "browser_agent": {
      "supported": true,
      "name": "run_current_tool",
      "discovery": "WebMCP on the human page in a supporting browser",
      "verification": "See audit/API-AUDIT.md; availability is not verification"
    }
  },
  "markdown": "# Fuel cost calculator\n\n- Human page: https://happytails.ai/en/calculators/fuel-cost-calculator/\n- Markdown: https://happytails.ai/en/calculators/fuel-cost-calculator.md\n- Structured JSON: https://happytails.ai/agents/en/calculators/fuel-cost-calculator/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `fuel-cost-calculator` |\n| Category | calculators |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Automatic updates after valid input or file selection. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nMatch the distance, consumption and fuel-price units to the selected mode. This estimates fuel only, without tolls, parking or route data.\n\n### Inputs and settings\n\nNo free-text input is required. Use the file inputs and/or settings below.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `units` | Distance and consumption | select | \"Kilometres / L per 100 km\" | Allowed: Kilometres / L per 100 km, Miles / US miles per gallon |\n| `distance` | Trip distance | number | 300 | min=0 max=1000000000 step=any |\n| `efficiency` | Fuel consumption | number | 7 | min=0.001 max=1000000 step=any |\n| `price` | Price per litre or US gallon | number | 1.5 | min=0 max=1000000 step=any |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nMiles-per-gallon mode uses US gallons, not imperial gallons. The result excludes tolls, parking and other trip costs. Real fuel consumption varies with route, vehicle and driving conditions.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"fuel-cost-calculator\",\n  \"category\": \"calculators\",\n  \"built\": true,\n  \"requirements\": \"Miles-per-gallon mode uses US gallons, not imperial gallons. The result excludes tolls, parking and other trip costs. Real fuel consumption varies with route, vehicle and driving conditions.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"units\",\n        \"label\": \"Distance and consumption\",\n        \"value\": \"Kilometres / L per 100 km\",\n        \"type\": \"select\",\n        \"values\": [\n          \"Kilometres / L per 100 km\",\n          \"Miles / US miles per gallon\"\n        ]\n      },\n      {\n        \"key\": \"distance\",\n        \"label\": \"Trip distance\",\n        \"value\": 300,\n        \"type\": \"number\",\n        \"min\": 0,\n        \"max\": 1000000000,\n        \"step\": \"any\"\n      },\n      {\n        \"key\": \"efficiency\",\n        \"label\": \"Fuel consumption\",\n        \"value\": 7,\n        \"type\": \"number\",\n        \"min\": 0.001,\n        \"max\": 1000000,\n        \"step\": \"any\"\n      },\n      {\n        \"key\": \"price\",\n        \"label\": \"Price per litre or US gallon\",\n        \"value\": 1.5,\n        \"type\": \"number\",\n        \"min\": 0,\n        \"max\": 1000000,\n        \"step\": \"any\"\n      }\n    ],\n    \"input\": false,\n    \"live\": true,\n    \"presentation\": \"metrics\",\n    \"note\": \"Match the distance, consumption and fuel-price units to the selected mode. This estimates fuel only, without tolls, parking or route data.\",\n    \"experience\": {\n      \"automatic\": true,\n      \"single\": false,\n      \"inputMaxLength\": 1000000,\n      \"inputMode\": \"text\",\n      \"label\": \"Your text\",\n      \"placeholder\": \"Type or paste your input…\",\n      \"help\": \"Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.\",\n      \"action\": null\n    },\n    \"mode\": \"automatic\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nEstimate the fuel bill before you leave.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Fuel cost calculator\n\n1. Enter the values you want to calculate and choose the relevant units or settings.\n2. The result updates as you type. Adjust the available settings if needed.\n3. Review the result, then use Copy result or a download link when available.\n\n## Useful next steps\n\n- [Km to miles](https://happytails.ai/en/unit-converters/km-to-miles/) ([Markdown](https://happytails.ai/en/unit-converters/km-to-miles.md))\n\n- [Liters to gallons](https://happytails.ai/en/unit-converters/liters-to-gallons/) ([Markdown](https://happytails.ai/en/unit-converters/liters-to-gallons.md))\n\n- [Percentage](https://happytails.ai/en/calculators/percentage/) ([Markdown](https://happytails.ai/en/calculators/percentage.md))\n\n## How to use it\n\nChoose kilometres with litres per 100 km, or miles with US miles per gallon. Then enter trip distance, fuel consumption and the price per matching fuel unit.\n\n### A worked example\n\nA 300 km trip at 7 L/100 km uses 21 litres. At 1.50 per litre, the estimated fuel cost is 31.50.\n\n### What to know\n\nMiles-per-gallon mode uses US gallons, not imperial gallons. The result excludes tolls, parking and other trip costs. Real fuel consumption varies with route, vehicle and driving conditions.\n"
}