{
  "openapi": "3.1.0",
  "info": {
    "title": "Hummingtomidi site lookup API",
    "version": "1.0.0",
    "description": "One public, read-only operation: look up a public tool page by name or conversion direction. No authentication, no writes, no uploads."
  },
  "servers": [
    {
      "url": "https://hummingtomidi.com"
    }
  ],
  "paths": {
    "/api/site-lookup": {
      "get": {
        "operationId": "siteLookup",
        "summary": "Look up a public page by name or conversion direction",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Page name or direction, e.g. 'midi to wav', 'privacy', 'mp3 to midi'",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matches (possibly empty)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/mcp": {
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "JSON-RPC MCP endpoint (initialize, tools/list, tools/call)",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC result"
          }
        },
        "security": []
      }
    }
  }
}
