# get_reviewer_tools

URL: https://codepanel.ai/docs/mcp-server/get_reviewer_tools

The CodePanel MCP tool that shows whether reviewers can read and search files at the head commit, which tools they get and their limits.

`get_reviewer_tools` tells your agent whether CodePanel's reviewers can open and search files at the pull request's head commit, which tools they get, and the limits on them. Pass `repo` for that repository's effective setting. Leave it out to see the deployment's default. It only reads and needs the `read` scope. The answer matters when a finding rests on code outside the diff, because it says whether a reviewer was able to look there.

## When to call it

- **When a finding claims something about code outside the diff,** to see whether reviewers could have read it. If `enabled` is `false`, they could not.
- **Before turning `REVIEW_REVIEWER_TOOLS` on** with [`update_repo_settings`](/docs/mcp-server/update_repo_settings), to read the limits first.
- **To explain a cost in a round.** Each tool turn is another call to that reviewer's model.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `repo` | string | no | Repository as owner/name |

It only reads: the server marks it `readOnlyHint: true`, so clients that ask before a write can run it without asking.

With `repo`, the answer combines the deployment's setting with that repository's own `REVIEW_REVIEWER_TOOLS` override, the same value a round would use. Without it, `repo` in the answer is `null` and `enabled` is the deployment's value alone. A repository that is not yours answers `Repository not found`.

## What it returns

| Field | Meaning |
| --- | --- |
| `repo` | The repository you asked about, or `null` |
| `enabled` | Whether reviewers get the tools under the effective `REVIEW_REVIEWER_TOOLS` switch |
| `switch` | `REVIEW_REVIEWER_TOOLS`, the switch that controls it |
| `revision` | `pull_request_head`: the files are read at the pull request's head commit |
| `tools` | `read_file` (with `maxLines`) and `search_code` (with `maxFiles` and `maxMatches`), each with a description |
| `limits` | The shared budget per reviewer: `maxCalls`, `maxToolTurns`, `maxCharsPerCall`, `maxTotalChars` |
| `gitHistory`, `shell` | Both `false`: reviewers cannot read history or run commands |
| `requiresOwnKey` | `true`: the tools run only on your own provider key |
| `availableOnCredits`, `availableOnChatGPTPlan` | Both `false`: a call paid with credits or a ChatGPT plan gets no tools |
| `answerReserveMs` | Time kept back after the tool turns so the reviewer can still answer |
| `note` | A sentence on what a reviewer with and without tools can follow |

`enabled: true` does not mean every reviewer used a tool. A reviewer needs a model that supports tool calls, your own key, a head commit and enough time left. [`get_panel`](/docs/mcp-server/get_panel) reports `toolsSupported` per model, and each session's `toolUse` records what happened.

`search_code` is an exact-string search over a bounded set of files. No match does not prove the string is absent from the repository.

## Examples

These responses come from a test account on a local backend, where the switch is off.

```json title="Call"
{ "repo": "codepanel-dev/web-app" }
```

```json title="Result"
{
  "repo": "codepanel-dev/web-app",
  "enabled": false,
  "switch": "REVIEW_REVIEWER_TOOLS",
  "revision": "pull_request_head",
  "tools": [
    {
      "name": "read_file",
      "description": "Read repository files at the PR head commit, with line numbers. Secret paths are excluded and sensitive lines redacted.",
      "maxLines": 400
    },
    {
      "name": "search_code",
      "description": "Bounded exact-string search. No match is not proof of repository-wide absence.",
      "maxFiles": 30,
      "maxMatches": 40
    }
  ],
  "limits": {
    "maxCalls": 6,
    "maxToolTurns": 2,
    "maxCharsPerCall": 8000,
    "maxTotalChars": 24000
  },
  "gitHistory": false,
  "requiresOwnKey": true,
  "availableOnCredits": false,
  "availableOnChatGPTPlan": false,
  "answerReserveMs": 120000,
  "shell": false,
  "note": "Blast-radius reviewers can follow callers with search and reads within these limits. History reviewers cannot inspect git history. Tools run only on the user's own API key, with a head commit and enough time remaining. Credit-funded and ChatGPT-plan calls have no tools. get_panel reports toolsSupported for each model; session toolUse records actual calls."
}
```

`tools` and `limits` are the same whether `enabled` is `true` or `false`: they describe what would apply. Only `enabled` says whether it does.

## The same step without MCP

| Surface | Form |
| --- | --- |
| CLI | `codepanel panel tools --repo owner/name` ([CLI](/docs/cli#panels-models-and-keys)) |
| HTTP API | `GET /reviewer-tools?repo=owner/name` with the `read` scope ([API](/docs/api#panel-filters-and-reviewer-tools)) |

## What the server tells your agent

The description your agent reads when it lists the tools:

> Which tools reviewers receive, their limits and effective enablement. Pass repo for its effective switch; without repo shows the deployment default. Includes file reads, bounded search, and whether git history is available.

## Related

- [`get_review_switches`](/docs/mcp-server/get_review_switches): the switch's override and source for a repository.
- [`update_repo_settings`](/docs/mcp-server/update_repo_settings): turn `REVIEW_REVIEWER_TOOLS` on or off for one repository.
- [`get_panel`](/docs/mcp-server/get_panel): which models support tools.
- [Reviewers](/docs/reviewers#reviewer-tools-and-path-scopes): the same limits in prose.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
