{
  "openapi": "3.1.0",
  "info": {
    "title": "UK Insolvency Alerts MCP",
    "description": "Gazette winding-up petitions, liquidations and administrations.\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://uk-insolvency-alerts-mcp.donniertf.workers.dev/mcp. Manifest: https://uk-insolvency-alerts-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-insolvency-alerts-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. Gazette winding-up petitions, liquidations and administrations."
  },
  "servers": [
    {
      "url": "https://uk-insolvency-alerts-mcp.donniertf.workers.dev",
      "description": "UK Insolvency Alerts MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/insolvency_check": {
      "post": {
        "summary": "PAID (x402). $0.05 USDC per call. Also free via /mcp (5 free calls/day per IP). Has this UK company (name or company number) appeared in Gazette insolvency notices — winding-up petitions, liquidation, administration? Top 3 notices.",
        "description": "PAID (x402). $0.05 USDC per call. Also free via /mcp (5 free calls/day per IP). Has this UK company (name or company number) appeared in Gazette insolvency notices — winding-up petitions, liquidation, administration? Top 3 notices.",
        "operationId": "post_x402_insolvency_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": {
                  "company": {
                    "type": "string",
                    "description": "Company name or number, e.g. 11877818"
                  }
                },
                "required": [
                  "company"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.05 USDC per call. Also free via /mcp (5 free calls/day per IP). Has this UK company (name or company number) appeared in Gazette insolvency notices — winding-up petitions, liquidation, administration? Top 3 notices. (query or 402 probe)",
        "description": "PAID (x402). $0.05 USDC per call. Also free via /mcp (5 free calls/day per IP). Has this UK company (name or company number) appeared in Gazette insolvency notices — winding-up petitions, liquidation, administration? Top 3 notices. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_insolvency_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": "company",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Company name or number, e.g. 11877818"
            }
          }
        ]
      }
    },
    "/x402/watchlist_check": {
      "post": {
        "summary": "PRO. Check up to 50 customers/suppliers (names or company numbers) at once for insolvency notices, optionally only in the last N days.",
        "description": "PRO. Check up to 50 customers/suppliers (names or company numbers) at once for insolvency notices, optionally only in the last N days.",
        "operationId": "post_x402_watchlist_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": {
                  "companies": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "days": {
                    "type": "number",
                    "description": "Only notices in the last N days (optional)"
                  }
                },
                "required": [
                  "companies"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Check up to 50 customers/suppliers (names or company numbers) at once for insolvency notices, optionally only in the last N days. (query or 402 probe)",
        "description": "PRO. Check up to 50 customers/suppliers (names or company numbers) at once for insolvency notices, optionally only in the last N days. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_watchlist_check",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": "companies",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number",
              "description": "Only notices in the last N days (optional)"
            }
          }
        ]
      }
    },
    "/x402/new_petitions": {
      "post": {
        "summary": "PRO. New winding-up petitions (creditors suing to wind up a company) in the last N days (default 7) — early warning before a customer or supplier collapses. Optional postcode + radius.",
        "description": "PRO. New winding-up petitions (creditors suing to wind up a company) in the last N days (default 7) — early warning before a customer or supplier collapses. Optional postcode + radius.",
        "operationId": "post_x402_new_petitions",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": {
                  "days": {
                    "type": "number"
                  },
                  "postcode": {
                    "type": "string"
                  },
                  "radius_miles": {
                    "type": "number"
                  },
                  "limit": {
                    "type": "number"
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. New winding-up petitions (creditors suing to wind up a company) in the last N days (default 7) — early warning before a customer or supplier collapses. Optional postcode + radius. (query or 402 probe)",
        "description": "PRO. New winding-up petitions (creditors suing to wind up a company) in the last N days (default 7) — early warning before a customer or supplier collapses. Optional postcode + radius. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_new_petitions",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "postcode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "radius_miles",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    },
    "/x402/area_distress": {
      "post": {
        "summary": "PRO. All corporate insolvency notices (liquidations, administrations, winding-up orders) near a UK postcode in the last N days — for lead gen (asset buyers, insolvency practitioners, recruiters, landlords).",
        "description": "PRO. All corporate insolvency notices (liquidations, administrations, winding-up orders) near a UK postcode in the last N days — for lead gen (asset buyers, insolvency practitioners, recruiters, landlords).",
        "operationId": "post_x402_area_distress",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": {
                  "postcode": {
                    "type": "string"
                  },
                  "radius_miles": {
                    "type": "number"
                  },
                  "days": {
                    "type": "number"
                  },
                  "limit": {
                    "type": "number"
                  }
                },
                "required": [
                  "postcode"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All corporate insolvency notices (liquidations, administrations, winding-up orders) near a UK postcode in the last N days — for lead gen (asset buyers, insolvency practitioners, recruiters, landlords). (query or 402 probe)",
        "description": "PRO. All corporate insolvency notices (liquidations, administrations, winding-up orders) near a UK postcode in the last N days — for lead gen (asset buyers, insolvency practitioners, recruiters, landlords). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_area_distress",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": "postcode",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "radius_miles",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ]
      }
    },
    "/x402/company_history": {
      "post": {
        "summary": "PRO. Full insolvency notice timeline for one company (all notices, oldest to newest).",
        "description": "PRO. Full insolvency notice timeline for one company (all notices, oldest to newest).",
        "operationId": "post_x402_company_history",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": {
                  "company": {
                    "type": "string"
                  }
                },
                "required": [
                  "company"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Full insolvency notice timeline for one company (all notices, oldest to newest). (query or 402 probe)",
        "description": "PRO. Full insolvency notice timeline for one company (all notices, oldest to newest). Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_company_history",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "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": "company",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  }
}