{
  "openapi": "3.1.0",
  "info": {
    "title": "Al Zuhra Academy Public Agent & Commerce API",
    "version": "1.0.0",
    "description": "Machine-readable API for discovering Al Zuhra Academy courses, transparent INR pricing, Q&A subscription tiers, refund policy, MCP JSON-RPC tools, and admission inquiries.",
    "contact": {
      "name": "Al Zuhra Academy",
      "email": "contact@alzuhraacademy.in",
      "url": "https://alzuhraacademy.in"
    }
  },
  "servers": [
    {
      "url": "https://alzuhraacademy.in",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/public-catalog.php": {
      "get": {
        "operationId": "getPublicCatalog",
        "summary": "Get courses, tuition fees, Q&A plans, and commercial terms",
        "description": "Returns structured JSON of all active courses, monthly/admission fees in INR, Q&A subscription tiers, accepted payment methods, and refund policy.",
        "responses": {
          "200": {
            "description": "Public commercial & academic catalog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "get": {
        "operationId": "getMcpServerCard",
        "summary": "Get MCP server metadata",
        "responses": {
          "200": {
            "description": "MCP server card JSON"
          }
        }
      },
      "post": {
        "operationId": "invokeMcpTool",
        "summary": "Invoke an MCP JSON-RPC 2.0 tool (search_courses, get_pricing_plans, search_qna, submit_admission_inquiry)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "example": "2.0" },
                  "id": { "type": "integer", "example": 1 },
                  "method": { "type": "string", "example": "tools/list" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    },
    "/api/health.php": {
      "get": {
        "operationId": "getHealthStatus",
        "summary": "Service health check",
        "responses": {
          "200": {
            "description": "Healthy status JSON"
          }
        }
      }
    }
  }
}
