{
  "openapi": "3.1.0",
  "info": {
    "title": "Garage Door Solutions Inc. — public API",
    "version": "1.0.0",
    "summary": "Read-only data about garage door services, pricing, and coverage in London, Ontario.",
    "description": "A public, unauthenticated, read-only API. No registration, no API keys, no tokens — see https://garagedoorsolutions.ca/auth.md. Nothing here books a job or accepts personal data; booking stays a human action at https://garagedoorsolutions.ca/booking/.",
    "contact": {
      "name": "Garage Door Solutions Inc.",
      "url": "https://garagedoorsolutions.ca/contact/",
      "email": "hello@garagedoorsolutions.ca"
    }
  },
  "servers": [
    {
      "url": "https://garagedoorsolutions.ca/api",
      "description": "Production"
    }
  ],
  "paths": {
    "/business/": {
      "get": {
        "summary": "Business details",
        "description": "Name, contact, address, opening hours, service radius, rating, and social profiles.",
        "operationId": "getBusiness",
        "responses": {
          "200": {
            "description": "Business record",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/services/": {
      "get": {
        "summary": "Services and starting prices",
        "description": "Every service with its starting price, what it covers, and FAQs. Pass `id` for one service. Prices are starting points in CAD, not quotes.",
        "operationId": "getServices",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "required": false,
            "description": "Service id or clean-URL slug.",
            "schema": {
              "type": "string",
              "enum": [
                "emergency",
                "repair",
                "spring",
                "opener",
                "new-door",
                "commercial",
                "cable-track",
                "tune-up",
                "garage-doors"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Service list, or a single service when `id` is given",
            "content": {
              "application/json": {}
            }
          },
          "404": {
            "description": "Unknown service id",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/service-areas/": {
      "get": {
        "summary": "Service areas",
        "description": "All 62 cities, towns, and London neighbourhoods served, with distance and expected response time.",
        "operationId": "getServiceAreas",
        "responses": {
          "200": {
            "description": "Service area list",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/coverage/": {
      "get": {
        "summary": "Check coverage for a place or postal code",
        "description": "Place-name lookups are authoritative (`confidence: \"confirmed\"`). Postal lookups match on the forward sortation area only and return `confidence: \"likely\"`.",
        "operationId": "checkCoverage",
        "parameters": [
          {
            "name": "city",
            "in": "query",
            "required": false,
            "description": "Place name or slug, e.g. \"Strathroy\".",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "postal",
            "in": "query",
            "required": false,
            "description": "Ontario postal code, e.g. \"N6E 2E6\".",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Coverage answer",
            "content": {
              "application/json": {}
            }
          },
          "400": {
            "description": "Neither parameter given, or an invalid postal code",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/health/": {
      "get": {
        "summary": "Health check",
        "description": "Liveness plus dataset counts. Advertised as `status` in the API catalog.",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Service is up",
            "content": {
              "application/json": {}
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "Model Context Protocol endpoint",
        "description": "JSON-RPC 2.0 over Streamable HTTP. Supports initialize, ping, tools/list, and tools/call. All four tools are read-only. No SSE stream is offered, so GET returns 405.",
        "operationId": "mcp",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {}
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {}
            }
          },
          "202": {
            "description": "Notification accepted, no response body"
          }
        }
      }
    }
  }
}
