{
  "openapi": "3.1.0",
  "info": {
    "title": "Clustr Content API",
    "version": "1.0.0",
    "summary": "Machine-readable access to getclustr.ai content for agents and AI crawlers.",
    "description": "Clustr Innovations runs instructor-led AI training and enablement programs for enterprise teams (ChatGPT, Claude, Microsoft Copilot, Gemini). Every public page on getclustr.ai is retrievable as HTML or as markdown. Request markdown by appending `.md` to any path, or by sending `Accept: text/markdown`. No authentication is required and all endpoints are read-only.",
    "contact": {
      "name": "Clustr Innovations",
      "url": "https://getclustr.ai/contact",
      "email": "hugh@clustr.cc"
    },
    "license": {
      "name": "Content usable with attribution to Clustr Innovations (getclustr.ai)",
      "url": "https://getclustr.ai/terms"
    }
  },
  "servers": [{ "url": "https://getclustr.ai", "description": "Production" }],
  "externalDocs": {
    "description": "llms.txt — condensed site context for language models",
    "url": "https://getclustr.ai/llms.txt"
  },
  "tags": [
    { "name": "content", "description": "Page content in HTML or markdown" },
    { "name": "discovery", "description": "Index documents describing the site" }
  ],
  "paths": {
    "/{path}": {
      "get": {
        "tags": ["content"],
        "operationId": "getPage",
        "summary": "Retrieve any public page",
        "description": "Returns a page as HTML by default. Send `Accept: text/markdown` to receive clean markdown with YAML front matter (title, description, canonical url) instead. Valid values for `path` are the URLs listed in /sitemap.xml, for example `ai-training-for-employees`, `claude`, `microsoft-copilot`, `case-studies`.",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Page path without a leading slash, as listed in /sitemap.xml.",
            "schema": { "type": "string", "examples": ["ai-training-for-employees", "claude"] }
          },
          {
            "name": "Accept",
            "in": "header",
            "required": false,
            "description": "Set to `text/markdown` for markdown, `text/html` (or omit) for HTML.",
            "schema": { "type": "string", "default": "text/html", "enum": ["text/html", "text/markdown"] }
          }
        ],
        "responses": {
          "200": {
            "description": "Page content",
            "content": {
              "text/html": { "schema": { "type": "string" } },
              "text/markdown": {
                "schema": { "type": "string" },
                "example": "---\ntitle: \"AI Training for Employees | Clustr\"\ndescription: \"Instructor-led AI training programs...\"\nurl: https://getclustr.ai/ai-training-for-employees\n---\n\n# AI Training for Employees\n..."
              }
            }
          },
          "404": { "description": "No such page" }
        }
      }
    },
    "/{path}.md": {
      "get": {
        "tags": ["content"],
        "operationId": "getPageAsMarkdown",
        "summary": "Retrieve any public page as markdown",
        "description": "Direct markdown URL for a page. Equivalent to requesting `/{path}` with `Accept: text/markdown`. Prefer this when header negotiation is inconvenient.",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "description": "Page path without a leading slash or extension.",
            "schema": { "type": "string", "examples": ["ai-enablement", "copilot-vs-chatgpt-vs-claude-vs-gemini"] }
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown with YAML front matter",
            "content": { "text/markdown": { "schema": { "type": "string" } } }
          },
          "404": { "description": "No such page" }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getSitemap",
        "summary": "List every indexable URL",
        "description": "XML sitemap enumerating all public pages. Use this to discover valid values for the `path` parameter.",
        "responses": {
          "200": {
            "description": "Sitemap",
            "content": { "application/xml": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getLlmsTxt",
        "summary": "Condensed site context for language models",
        "description": "Short overview of Clustr, its programs, and links to key pages, in the llms.txt convention.",
        "responses": {
          "200": {
            "description": "Plain text summary",
            "content": { "text/plain": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getLlmsFullTxt",
        "summary": "Full site context for language models",
        "description": "Expanded version of llms.txt with program detail, case studies, and positioning.",
        "responses": {
          "200": {
            "description": "Plain text summary",
            "content": { "text/plain": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/AGENTS.md": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getAgentsMd",
        "summary": "Instructions for AI agents reading this site",
        "description": "How agents should access, interpret, and cite getclustr.ai: the MCP server, markdown access, index documents, a question-to-page routing table, and the accuracy caveats to respect.",
        "responses": {
          "200": {
            "description": "Markdown document",
            "content": { "text/markdown": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/.well-known/mcp-server-card": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getMcpServerCard",
        "summary": "MCP server card",
        "description": "Describes the MCP server at /mcp: transport, supported protocol versions, the tool list, authentication (none), and usage policy.",
        "responses": {
          "200": {
            "description": "Server card",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": ["discovery"],
        "operationId": "callMcp",
        "summary": "MCP endpoint (JSON-RPC 2.0 over Streamable HTTP)",
        "description": "Model Context Protocol server. Public, unauthenticated, and stateless: every POST is a complete JSON-RPC exchange answered with application/json, and no session id is issued. Supported methods: initialize, ping, tools/list, tools/call. Tools are search_pages, fetch_page, list_services, list_case_studies, get_company_profile, estimate_enablement_roi, get_ai_readiness_questions, score_ai_readiness, check_agent_readiness, and list_contact_channels. Prefer this over scraping HTML. GET is answered 405: there is no server-initiated SSE stream.",
        "externalDocs": {
          "description": "Server card",
          "url": "https://getclustr.ai/.well-known/mcp-server-card"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "const": "2.0" },
                  "id": { "description": "Omit for notifications, which are answered 204/202 with no body." },
                  "method": {
                    "type": "string",
                    "examples": ["initialize", "tools/list", "tools/call"]
                  },
                  "params": { "type": "object" }
                }
              },
              "examples": {
                "listTools": {
                  "summary": "List the available tools",
                  "value": { "jsonrpc": "2.0", "id": 1, "method": "tools/list" }
                },
                "callTool": {
                  "summary": "Search the site",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                      "name": "search_pages",
                      "arguments": { "query": "copilot training", "limit": 3 }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": { "application/json": { "schema": { "type": "object" } } }
          },
          "202": { "description": "Notification accepted; no body" },
          "400": { "description": "Malformed JSON or not a JSON-RPC 2.0 request" }
        }
      }
    },
    "/robots.txt": {
      "get": {
        "tags": ["discovery"],
        "operationId": "getRobotsTxt",
        "summary": "Crawl policy and Content Signals",
        "description": "Declarative AI policy. Clustr permits search indexing, AI grounding/retrieval, and AI training (search=yes, ai-input=yes, ai-train=yes). There is no blanket Disallow.",
        "responses": {
          "200": {
            "description": "robots.txt",
            "content": { "text/plain": { "schema": { "type": "string" } } }
          }
        }
      }
    }
  }
}
