[
  {
    "type": "tool",
    "name": "select_repository_target",
    "readOnly": true,
    "description": "Persist the active repository for the current ChatGPT session. Supports public repo URLs directly and private GitHub repositories after GitHub App connection.",
    "inputs": {
      "repo_url": {
        "type": "string",
        "required": true,
        "description": "Git repository URL or owner/repo shorthand."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout."
      }
    }
  },
  {
    "type": "tool",
    "name": "clear_repository_target",
    "readOnly": true,
    "description": "Clear the active repository selection for the current session and fall back to the server default repository.",
    "inputs": {}
  },
  {
    "type": "tool",
    "name": "inspect_repository_capabilities",
    "readOnly": true,
    "description": "Declare what the current repository actually supports before search, explanation, or audit work begins.",
    "inputs": {
      "repo_root": {
        "type": "string",
        "required": false,
        "description": "Absolute repository root to inspect on the server."
      },
      "repo_url": {
        "type": "string",
        "required": false,
        "description": "Git repository URL or owner/repo shorthand to inspect."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout when repo_url is used."
      }
    }
  },
  {
    "type": "tool",
    "name": "inspect_repository_status",
    "readOnly": true,
    "description": "Return repository status, workspace profile, selected repository, and runtime/index readiness.",
    "inputs": {
      "repo_root": {
        "type": "string",
        "required": false,
        "description": "Absolute repository root to inspect on the server."
      },
      "repo_url": {
        "type": "string",
        "required": false,
        "description": "Git repository URL or owner/repo shorthand to inspect."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout when repo_url is used."
      }
    }
  },
  {
    "type": "tool",
    "name": "search_repository",
    "readOnly": true,
    "description": "Search symbols and operational contracts with evidence-backed matches and file references.",
    "inputs": {
      "repo_root": {
        "type": "string",
        "required": false,
        "description": "Absolute repository root to inspect on the server."
      },
      "repo_url": {
        "type": "string",
        "required": false,
        "description": "Git repository URL or owner/repo shorthand to inspect."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout when repo_url is used."
      },
      "kind": {
        "type": "string",
        "required": true,
        "enum": [
          "symbol",
          "env-var",
          "redis-key",
          "deploy-target",
          "cartridge",
          "api-route",
          "docker-service"
        ]
      },
      "needle": {
        "type": "string",
        "required": true,
        "description": "Search term or exact contract name."
      }
    }
  },
  {
    "type": "tool",
    "name": "explain_repository",
    "readOnly": true,
    "description": "Explain cross-file operational topology such as deploy targets, env vars, Redis keys, Milvus, and cartridges.",
    "inputs": {
      "repo_root": {
        "type": "string",
        "required": false,
        "description": "Absolute repository root to inspect on the server."
      },
      "repo_url": {
        "type": "string",
        "required": false,
        "description": "Git repository URL or owner/repo shorthand to inspect."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout when repo_url is used."
      },
      "kind": {
        "type": "string",
        "required": true,
        "enum": [
          "deploy-target",
          "env-var",
          "redis-key",
          "milvus",
          "cartridge"
        ]
      },
      "needle": {
        "type": "string",
        "required": false,
        "description": "Required for all explain kinds except milvus."
      }
    }
  },
  {
    "type": "tool",
    "name": "audit_repository_contracts",
    "readOnly": true,
    "description": "Run read-only doctor suites for contract drift and operational hygiene.",
    "inputs": {
      "repo_root": {
        "type": "string",
        "required": false,
        "description": "Absolute repository root to inspect on the server."
      },
      "repo_url": {
        "type": "string",
        "required": false,
        "description": "Git repository URL or owner/repo shorthand to inspect."
      },
      "git_ref": {
        "type": "string",
        "required": false,
        "description": "Optional branch, tag, or commit to checkout when repo_url is used."
      },
      "kind": {
        "type": "string",
        "required": true,
        "default": "all",
        "enum": [
          "all",
          "deploy",
          "semantic-wiring",
          "session-hot-state",
          "route-projection",
          "auth-brokering",
          "event-durability",
          "event-envelope",
          "flight-auth",
          "gateway-oar-boundary",
          "frontend-engine-client",
          "conversation-identity",
          "health-audit-sentinel",
          "duckdb-contract",
          "frontend-readiness",
          "onboarding-projection",
          "vigoros-swarm",
          "cartridge-boundary",
          "egress-compliance",
          "redis-key-hygiene",
          "milvus-collection-drift",
          "prod-surface-hygiene"
        ]
      }
    }
  }
]
