{
  "openapi": "3.1.0",
  "info": {
    "title": "Orbyd Agent Discovery API",
    "version": "1.0.0",
    "description": "Read-only discovery endpoints for locating Orbyd tool pages and deterministic contracts."
  },
  "servers": [
    {
      "url": "https://orbyd.app"
    }
  ],
  "paths": {
    "/agent-tools.json": {
      "get": {
        "operationId": "getAgentTools",
        "summary": "Get canonical Orbyd agent tool index",
        "responses": {
          "200": {
            "description": "Tool index with contract links and input schemas",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/webmcp.json": {
      "get": {
        "operationId": "getWebMcpManifest",
        "summary": "Get Orbyd WebMCP tool manifest",
        "responses": {
          "200": {
            "description": "WebMCP manifest",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsText",
        "summary": "Get compact LLM guidance",
        "responses": {
          "200": {
            "description": "Compact discovery guide",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullText",
        "summary": "Get full LLM product guidance",
        "responses": {
          "200": {
            "description": "Detailed discovery and usage guide",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/contracts/{contract_file}": {
      "get": {
        "operationId": "getToolContract",
        "summary": "Get deterministic tool contract by filename",
        "parameters": [
          {
            "name": "contract_file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Contract filename in /contracts, e.g. roi-payback-period.json"
          }
        ],
        "responses": {
          "200": {
            "description": "Tool contract JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Contract not found"
          }
        }
      }
    }
  }
}
