{
  "openapi": "3.1.0",
  "info": {
    "title": "Pick My Pharmacy agent API",
    "version": "1.0.0",
    "description": "Public, unauthenticated read APIs for UK pharmacy directory search, NHS Pharmacy First triage, and private treatment-service price ranges. Pick My Pharmacy is a comparison site, not a pharmacy — it does not sell or supply medicines.",
    "contact": { "email": "hello@pickmypharmacy.co.uk" },
    "license": { "name": "Open Government Licence v3.0 (register-derived data)", "url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" }
  },
  "servers": [{ "url": "https://pickmypharmacy.co.uk" }],
  "paths": {
    "/mcp": {
      "get": {
        "summary": "MCP server metadata (canonical agent path)",
        "responses": { "200": { "description": "Server info" } }
      },
      "post": {
        "summary": "JSON-RPC 2.0 MCP (initialize, tools/list, tools/call)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "enum": ["2.0"] },
                  "id": {},
                  "method": { "type": "string" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "JSON-RPC result" } }
      }
    },
    "/api/mcp": {
      "get": {
        "summary": "MCP server metadata",
        "responses": { "200": { "description": "Server info" } }
      },
      "post": {
        "summary": "JSON-RPC 2.0 MCP (initialize, tools/list, tools/call)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "enum": ["2.0"] },
                  "id": {},
                  "method": { "type": "string" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "JSON-RPC result" } }
      }
    },
    "/a2a": {
      "post": {
        "summary": "A2A message/send — same tools as /mcp",
        "responses": { "200": { "description": "A2A result" } }
      }
    },
    "/api/a2a": {
      "post": {
        "summary": "A2A message/send alias — same tools as /mcp",
        "responses": { "200": { "description": "A2A result" } }
      }
    },
    "/pharmacies/search-index.json": {
      "get": {
        "summary": "Slim GPhC-backed pharmacy directory index (build-time snapshot)",
        "responses": { "200": { "description": "JSON array of slim pharmacy records" } }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Curated LLM content map",
        "responses": { "200": { "description": "text/plain" } }
      }
    },
    "/data/datapackage.json": {
      "get": {
        "summary": "Frictionless Data package descriptor",
        "responses": { "200": { "description": "application/vnd.datapackage+json" } }
      }
    }
  }
}
