{
  "openapi": "3.1.0",
  "info": {
    "title": "UK Fuel Price Finder MCP",
    "description": "Cheapest diesel and petrol near any UK postcode.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with an X-PAYMENT header (x402 v1, scheme exact, USDC on Base). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://uk-fuel-prices-mcp.donniertf.workers.dev/mcp. Manifest: https://uk-fuel-prices-mcp.donniertf.workers.dev/.well-known/x402. Paper/free discovery routes are not billed.",
    "version": "1.0.0",
    "contact": {
      "name": "Donnie Morrison",
      "email": "dmorrisonwebdesign@gmail.com",
      "url": "https://uk-fuel-prices-mcp.donniertf.workers.dev/"
    },
    "license": {
      "name": "See product landing page and source licences"
    },
    "x-guidance": "Use the paid HTTP routes documented in paths (POST JSON, or GET with query args). Unpaid calls return HTTP 402; retry with an X-PAYMENT header (x402, USDC on Base). The MCP transport is at /mcp. Cheapest diesel and petrol near any UK postcode."
  },
  "servers": [
    {
      "url": "https://uk-fuel-prices-mcp.donniertf.workers.dev",
      "description": "UK Fuel Price Finder MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/cheapest_fuel": {
      "post": {
        "summary": "FREE. Cheapest 3 UK fuel stations within 5 miles of a postcode for a fuel type (pence per litre).",
        "description": "FREE. Cheapest 3 UK fuel stations within 5 miles of a postcode for a fuel type (pence per litre).",
        "operationId": "post_x402_cheapest_fuel",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "FREE. Cheapest 3 UK fuel stations within 5 miles of a postcode for a fuel type (pence per litre). (query or 402 probe)",
        "description": "FREE. Cheapest 3 UK fuel stations within 5 miles of a postcode for a fuel type (pence per litre). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_cheapest_fuel",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/fuel_search": {
      "post": {
        "summary": "PRO. All stations within a radius (up to 30 miles) of a postcode, cheapest first, with all fuel prices and saving vs local average.",
        "description": "PRO. All stations within a radius (up to 30 miles) of a postcode, cheapest first, with all fuel prices and saving vs local average.",
        "operationId": "post_x402_fuel_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All stations within a radius (up to 30 miles) of a postcode, cheapest first, with all fuel prices and saving vs local average. (query or 402 probe)",
        "description": "PRO. All stations within a radius (up to 30 miles) of a postcode, cheapest first, with all fuel prices and saving vs local average. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_fuel_search",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/depot_report": {
      "post": {
        "summary": "PRO. Fleet report: for up to 20 depot/site postcodes, the cheapest nearby station and estimated saving per fill vs local average.",
        "description": "PRO. Fleet report: for up to 20 depot/site postcodes, the cheapest nearby station and estimated saving per fill vs local average.",
        "operationId": "post_x402_depot_report",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Fleet report: for up to 20 depot/site postcodes, the cheapest nearby station and estimated saving per fill vs local average. (query or 402 probe)",
        "description": "PRO. Fleet report: for up to 20 depot/site postcodes, the cheapest nearby station and estimated saving per fill vs local average. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_depot_report",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/area_benchmark": {
      "post": {
        "summary": "PRO. Min/average/max price per fuel type within a radius of a postcode, plus cheapest brand — for pricing, expenses and mileage rates.",
        "description": "PRO. Min/average/max price per fuel type within a radius of a postcode, plus cheapest brand — for pricing, expenses and mileage rates.",
        "operationId": "post_x402_area_benchmark",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "postcode": {
                    "type": "string"
                  },
                  "radius_miles": {
                    "type": "number"
                  }
                },
                "required": [
                  "postcode"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Min/average/max price per fuel type within a radius of a postcode, plus cheapest brand — for pricing, expenses and mileage rates. (query or 402 probe)",
        "description": "PRO. Min/average/max price per fuel type within a radius of a postcode, plus cheapest brand — for pricing, expenses and mileage rates. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_area_benchmark",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.030000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "responses": {
          "200": {
            "description": "Paid request succeeded; JSON result of the tool or pack.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "402": {
            "description": "Payment Required. Retry with an X-PAYMENT header (x402 v1, exact scheme, USDC on Base). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "postcode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "radius_miles",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    }
  }
}