{
  "openapi": "3.1.0",
  "info": {
    "title": "UK Tender Alerts MCP",
    "description": "Contracts Finder tenders matched to your keywords and region.\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-tender-alerts-mcp.donniertf.workers.dev/mcp. Manifest: https://uk-tender-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-tender-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. Contracts Finder tenders matched to your keywords and region."
  },
  "servers": [
    {
      "url": "https://uk-tender-alerts-mcp.donniertf.workers.dev",
      "description": "UK Tender Alerts MCP origin"
    }
  ],
  "tags": [
    {
      "name": "x402",
      "description": "USDC on Base pay-per-call routes"
    }
  ],
  "paths": {
    "/x402/tender_match": {
      "post": {
        "summary": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Live open UK public-sector tenders (Contracts Finder) matching your keywords and optional region — top 3 newest.",
        "description": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Live open UK public-sector tenders (Contracts Finder) matching your keywords and optional region — top 3 newest.",
        "operationId": "post_x402_tender_match",
        "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": {
                  "keywords": {
                    "type": "string",
                    "description": "Keywords for your services, e.g. 'cleaning', 'web design', 'roofing'"
                  },
                  "region": {
                    "type": "string",
                    "description": "Optional region, e.g. London, North West, Scotland"
                  }
                },
                "required": [
                  "keywords"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Live open UK public-sector tenders (Contracts Finder) matching your keywords and optional region — top 3 newest. (query or 402 probe)",
        "description": "PAID (x402). $0.02 USDC per call. Also free via /mcp (5 free calls/day per IP). Live open UK public-sector tenders (Contracts Finder) matching your keywords and optional region — top 3 newest. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_tender_match",
        "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": "keywords",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Keywords for your services, e.g. 'cleaning', 'web design', 'roofing'"
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional region, e.g. London, North West, Scotland"
            }
          }
        ]
      }
    },
    "/x402/tender_match_full": {
      "post": {
        "summary": "PRO. All open matches (up to 100) for a saved profile: several keyword sets + regions, with values, deadlines and days left. Optional min_value filter.",
        "description": "PRO. All open matches (up to 100) for a saved profile: several keyword sets + regions, with values, deadlines and days left. Optional min_value filter.",
        "operationId": "post_x402_tender_match_full",
        "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": {
                  "profile": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Keyword sets, e.g. ['cleaning','facilities management']",
                    "example": [
                      "cleaning"
                    ]
                  },
                  "region": {
                    "type": "string",
                    "description": "Optional region, e.g. London, North West, Scotland"
                  },
                  "min_value": {
                    "type": "number"
                  },
                  "access_token": {
                    "type": "string",
                    "description": "Subscriber token from /success (or Authorization: Bearer)"
                  }
                },
                "required": [
                  "profile"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. All open matches (up to 100) for a saved profile: several keyword sets + regions, with values, deadlines and days left. Optional min_value filter. (query or 402 probe)",
        "description": "PRO. All open matches (up to 100) for a saved profile: several keyword sets + regions, with values, deadlines and days left. Optional min_value filter. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_tender_match_full",
        "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": "profile",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "cleaning"
              ]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional region, e.g. London, North West, Scotland"
            }
          },
          {
            "name": "min_value",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "access_token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Subscriber token from /success (or Authorization: Bearer)"
            }
          }
        ]
      }
    },
    "/x402/new_since": {
      "post": {
        "summary": "PRO. Daily check: only tenders published since a date (default last 24h) for your keyword profile.",
        "description": "PRO. Daily check: only tenders published since a date (default last 24h) for your keyword profile.",
        "operationId": "post_x402_new_since",
        "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": {
                  "profile": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "cleaning"
                    ]
                  },
                  "region": {
                    "type": "string",
                    "description": "Optional region, e.g. London, North West, Scotland"
                  },
                  "since": {
                    "type": "string",
                    "description": "ISO date/time; default 24h ago"
                  },
                  "access_token": {
                    "type": "string",
                    "description": "Subscriber token from /success (or Authorization: Bearer)"
                  }
                },
                "required": [
                  "profile"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Daily check: only tenders published since a date (default last 24h) for your keyword profile. (query or 402 probe)",
        "description": "PRO. Daily check: only tenders published since a date (default last 24h) for your keyword profile. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_new_since",
        "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": "profile",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "cleaning"
              ]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional region, e.g. London, North West, Scotland"
            }
          },
          {
            "name": "since",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "ISO date/time; default 24h ago"
            }
          },
          {
            "name": "access_token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Subscriber token from /success (or Authorization: Bearer)"
            }
          }
        ]
      }
    },
    "/x402/closing_soon": {
      "post": {
        "summary": "PRO. Matches with deadlines in the next N days (default 14), soonest first.",
        "description": "PRO. Matches with deadlines in the next N days (default 14), soonest first.",
        "operationId": "post_x402_closing_soon",
        "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": {
                  "profile": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "cleaning"
                    ]
                  },
                  "region": {
                    "type": "string",
                    "description": "Optional region, e.g. London, North West, Scotland"
                  },
                  "within_days": {
                    "type": "number"
                  },
                  "access_token": {
                    "type": "string",
                    "description": "Subscriber token from /success (or Authorization: Bearer)"
                  }
                },
                "required": [
                  "profile"
                ]
              }
            }
          }
        }
      },
      "get": {
        "summary": "PRO. Matches with deadlines in the next N days (default 14), soonest first. (query or 402 probe)",
        "description": "PRO. Matches with deadlines in the next N days (default 14), soonest first. Accepts query args; unpaid calls return 402.",
        "operationId": "get_x402_closing_soon",
        "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": "profile",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "cleaning"
              ]
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Optional region, e.g. London, North West, Scotland"
            }
          },
          {
            "name": "within_days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "access_token",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Subscriber token from /success (or Authorization: Bearer)"
            }
          }
        ]
      }
    }
  }
}