{
  "openapi": "3.1.0",
  "info": {
    "title": "Virginia Beach Roof Guide API",
    "version": "1.0.0",
    "description": "Referral service endpoints for Virginia Beach Roof Guide. Read-only facts plus a homeowner quote request. Not a contractor."
  },
  "servers": [
    {
      "url": "https://virginiabeachroofguide.com"
    }
  ],
  "paths": {
    "/mcp/": {
      "post": {
        "operationId": "mcp",
        "summary": "MCP JSON-RPC 2.0 endpoint (Streamable HTTP transport)",
        "description": "Implements initialize, notifications/initialized, tools/list, tools/call and ping. See /.well-known/mcp.json.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "A JSON-RPC 2.0 request or notification."
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC 2.0 response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "202": {
            "description": "Accepted, for a notification with no response."
          }
        }
      }
    },
    "/api/lead/": {
      "post": {
        "operationId": "submitLead",
        "summary": "Submit a homeowner quote request (the web form's own endpoint)",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "address": {
                    "type": "string"
                  },
                  "intent": {
                    "type": "string"
                  },
                  "details": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "phone"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Validation failure.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}