# get_panel

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

The CodePanel MCP tool that lists your review panels with reviewers, orchestrator, key health and whether each panel can run.

`get_panel` returns your review panels, each with its reviewers and orchestrator, and says whether the panel can run right now (`ready`) and whether each member's provider key works (`callable`). Call it to find the `panelId` and `agentId` values every other panel tool takes, and to check a panel before you rely on it. It needs only the `read` scope.

## When to call it

- **Before any panel edit.** `add_reviewer`, `remove_reviewer`, `set_orchestrator` and `update_panel` take a `panelId` from here. `update_panel_member` takes a member's `_id`.
- **When a review was refused or a reviewer is missing.** `ready: false` or `callable: false` means a key behind the panel is missing or broken. A `failure` on a member means its provider keeps rejecting the calls.
- **To see which panel a repository uses.** Pass `repo` to get its effective panel.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `repo` | string | no | Repository as owner/name |
| `panelId` | string | no | Panel id, from get_panel |

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

Pass `repo` or `panelId`, not both. The schema allows both, but the call is refused:

```text
CodePanel: Pass repo or panelId, not both.
```

A `panelId` that does not exist, or belongs to someone else, gets `CodePanel: Panel not found`. Both cases get the same answer, so the call cannot probe other accounts.

## What it returns

An array of panels. With no filter it holds every panel you own. With `repo` or `panelId` it holds one panel, or none when a `repo` resolves to no panel.

A panel has `_id`, `name`, `isDefault`, `ready`, `reviewers`, `orchestrator`, `budgetUsd` and `budgetIsDefault`:

- `ready` is `true` when the orchestrator and at least one reviewer are `callable`.
- `budgetUsd` is the per-pull-request limit in force. It is absent when the limit is turned off, and `budgetIsDefault` is `true` when the panel never set one. [`update_panel`](/docs/mcp-server/update_panel) changes it.
- `orchestrator` is `null` when the panel has none.
- With `repo`, the panel is the one the repository is pinned to, else your default panel.

Each member has:

- `_id`, `name`, `slug`, `provider`, `providerName`, `modelId`, `reasoningEffort` and `systemPrompt`. The orchestrator also has `instructions`, your additions to its built-in prompt, and a reviewer can have a `pathScope`.
- `callable`: `false` when no working key, and no credits, reach the member's provider.
- `priced`: `false` when CodePanel has no price for the model. Its calls then cannot count toward a spending limit, and `warnings` says so.
- `failure`, only while the member keeps failing: `consecutiveFailures`, `reason` (the provider's error) and `lastFailureAt`. Switching its model clears it.
- `followTier` and `lastMove`, when the seat follows a [cost tier](/docs/choosing-models#follow-the-newest-model) or has been moved by it.
- `totalReviews` and `totalCostUsd`, what the member has done so far.

## Examples

These responses come from a test account on a local backend. Model ids, costs and member names are seed data.

### The default panel, no filter

```json title="Call"
{}
```

The real result held four reviewers. This copy keeps the orchestrator and the first reviewer, and cuts each `systemPrompt` after its first sentence.

```json title="Result (trimmed)"
[
  {
    "_id": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
    "budgetIsDefault": true,
    "budgetUsd": 5,
    "isDefault": true,
    "name": "Default panel",
    "orchestrator": {
      "_id": "k5775rqpcnqr3m3mz31d47xr5h8j7kcm",
      "avatar": "detective",
      "callable": true,
      "description": "Consolidates the panel's reviews and posts to GitHub",
      "isDefault": false,
      "modelId": "claude-opus-5-5",
      "name": "Orchestrator",
      "priced": true,
      "provider": "anthropic",
      "providerName": "Anthropic",
      "reasoningEffort": "medium",
      "slug": "orchestrator",
      "systemPrompt": "You are consolidating several independent code reviews of the same change. …",
      "toolsSupported": true,
      "totalCostUsd": 0.5279999999999999,
      "totalReviews": 6,
      "warnings": []
    },
    "ready": true,
    "reviewers": [
      {
        "_id": "k57f28zq4gs6631q0x3yrpb54s8j704w",
        "avatar": "robot",
        "callable": true,
        "description": "Logic errors, edge cases, error handling and security holes",
        "isDefault": false,
        "modelId": "claude-sonnet-5-5",
        "name": "Bugs & Security",
        "priced": true,
        "provider": "anthropic",
        "providerName": "Anthropic",
        "reasoningEffort": "medium",
        "slug": "bugs-security-reviewer",
        "systemPrompt": "Focus on correctness and security: logic errors, unhandled edge cases and errors, race conditions, missing auth or permission checks, injection, unvalidated input and leaked secrets. …",
        "toolsSupported": true,
        "totalCostUsd": 0.45849999999999996,
        "totalReviews": 8,
        "warnings": []
      }
    ]
  }
]
```

`toolsSupported` says whether the model can call tools. Filtering by `repo` or `panelId` returns the same shape, as a one-element array.

## The same step without MCP

| Surface | Form |
| --- | --- |
| CLI | `codepanel panel`, optionally with `--repo owner/name` or `--panel <id>` ([CLI](/docs/cli#panels-models-and-keys)) |
| HTTP API | [`GET /panels`](/docs/api#get-panels), with `repo` or `panelId` as query parameters |

## What the server tells your agent

The description your agent reads when it lists the tools:

> Review panels; optionally filter by repo (its effective panel) or panelId, but not both. Includes reviewers, orchestrator, whether each member's provider key works (callable), whether it keeps failing (failure, with the provider's error; switching its model clears it) and whether the panel can run (ready).

## Related

- [`get_key_status`](/docs/mcp-server/get_key_status): which providers have a working key, when `callable` is `false`.
- [`add_reviewer`](/docs/mcp-server/add_reviewer), [`remove_reviewer`](/docs/mcp-server/remove_reviewer) and [`update_panel_member`](/docs/mcp-server/update_panel_member): change the members listed here.
- [`get_panel_recommendation`](/docs/mcp-server/get_panel_recommendation): propose a whole panel for a goal.
- [Reviewers and panels](/docs/reviewers): roles, the orchestrator and limits.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
