{
  "openapi": "3.1.0",
  "info": {
    "title": "Australia Public Holidays MCP",
    "description": "Australian national and state public holidays.\n\nThis specification documents the HTTP x402 pay-per-call routes only (not the MCP /mcp transport). Unpaid calls return HTTP 402. Retry with a PAYMENT-SIGNATURE header (x402 v2, scheme exact, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). A payout address is included only in the live 402 challenge served by the Worker, not in this file. MCP endpoint: https://au-holidays-mcp.donniertf.workers.dev/mcp. Manifest: https://au-holidays-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://au-holidays-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 a PAYMENT-SIGNATURE header (x402 v2, USDC on Base; legacy X-PAYMENT v1 also accepted). The MCP transport is at /mcp. Australian national and state public holidays."
  },
  "servers": [
    {
      "url": "https://au-holidays-mcp.donniertf.workers.dev",
      "description": "Australia Public Holidays MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/next_holidays": {
      "post": {
        "summary": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Next 5 Australian public holidays from today.",
        "description": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Next 5 Australian public holidays from today.",
        "operationId": "post_x402_next_holidays",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). 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": {}
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Next 5 Australian public holidays from today. (query or 402 probe)",
        "description": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Next 5 Australian public holidays from today. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_next_holidays",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        }
      }
    },
    "/x402/by_state": {
      "post": {
        "summary": "PRO. Holidays affecting a state code (e.g. NSW, VIC, QLD) for this year.",
        "description": "PRO. Holidays affecting a state code (e.g. NSW, VIC, QLD) for this year.",
        "operationId": "post_x402_by_state",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). 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": {
                  "state": {
                    "type": "string"
                  }
                },
                "required": [
                  "state"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Holidays affecting a state code (e.g. NSW, VIC, QLD) for this year. (query or 402 probe)",
        "description": "PRO. Holidays affecting a state code (e.g. NSW, VIC, QLD) for this year. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_by_state",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/x402/is_holiday": {
      "post": {
        "summary": "PRO. Check a YYYY-MM-DD date against the AU holiday list.",
        "description": "PRO. Check a YYYY-MM-DD date against the AU holiday list.",
        "operationId": "post_x402_is_holiday",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). 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": {
                  "date": {
                    "type": "string"
                  }
                },
                "required": [
                  "date"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Check a YYYY-MM-DD date against the AU holiday list. (query or 402 probe)",
        "description": "PRO. Check a YYYY-MM-DD date against the AU holiday list. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_is_holiday",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.020000"
          },
          "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 a PAYMENT-SIGNATURE header (x402 v2, exact scheme, USDC on Base eip155:8453; legacy X-PAYMENT v1 also accepted). The 402 body/header lists price and terms; payout address is only in the live 402 challenge, not in this spec."
          }
        },
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}