# remove_reviewer

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

The CodePanel MCP tool that takes a reviewer off a panel. A panel keeps at least one reviewer, and the orchestrator is not removable here.

`remove_reviewer` takes a reviewer off a panel. A panel keeps at least one reviewer, and the orchestrator is not a reviewer, so it cannot be removed this way. It needs the `panel:write` scope.

## When to call it

- **To drop a reviewer you added** with [`add_reviewer`](/docs/mcp-server/add_reviewer) that is not earning its cost.
- **To make room.** A panel holds at most 10 reviewers.
- **Not to change a reviewer's model.** [`update_panel_member`](/docs/mcp-server/update_panel_member) does that and keeps its id and history.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `panelId` | string | yes | Panel id, from get_panel |
| `agentId` | string | yes | Id of a reviewer or the orchestrator on the panel, from get_panel |

It writes: the server marks it `readOnlyHint: false` and `destructiveHint: true` (it can change what is already there), so a client that asks before writes asks here.

Both ids come from [`get_panel`](/docs/mcp-server/get_panel): the panel's `_id` and the reviewer's `_id`.

Errors a caller can hit:

| Message | Cause |
| --- | --- |
| `That reviewer is not on this panel.` | The `agentId` is not in this panel's `reviewers`. This includes the orchestrator's id |
| `A panel needs at least one reviewer.` | It is the last reviewer |
| `Panel not found` | An unknown `panelId`, or one that is not yours |

## What it returns

`{ "ok": true }`.

The reviewer leaves the panel at once. The reviewer itself is retired only when no other panel uses it, so one that another panel shares stays there.

## Examples

These responses come from a test account on a local backend.

### Remove a reviewer

```json title="Call"
{
  "panelId": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
  "agentId": "k57b8y5bqd1gee3qj97hh43e8x8j692c"
}
```

```json title="Result"
{
  "ok": true
}
```

### Try to remove the orchestrator

The `agentId` here is the panel's orchestrator.

```json title="Call"
{
  "panelId": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
  "agentId": "k5775rqpcnqr3m3mz31d47xr5h8j7kcm"
}
```

```text title="Result (isError: true)"
CodePanel: That reviewer is not on this panel.
```

To change the orchestrator, use [`set_orchestrator`](/docs/mcp-server/set_orchestrator).

## The same step without MCP

| Surface | Form |
| --- | --- |
| CLI | `codepanel panel remove-reviewer --reviewer <id>`, with `--panel <id>` for a panel other than your default ([CLI](/docs/cli#panels-models-and-keys)) |
| HTTP API | [`POST /panels/reviewers/remove`](/docs/api#post-panelsreviewersremove) |

## What the server tells your agent

The description your agent reads when it lists the tools:

> Remove a reviewer from a panel. A panel keeps at least one reviewer.

## Related

- [`add_reviewer`](/docs/mcp-server/add_reviewer): the other half.
- [`restore_panel`](/docs/mcp-server/restore_panel): puts back reviewers that `apply_panel` retired, from its `undo`.
- [`get_panel`](/docs/mcp-server/get_panel): the ids to pass.
- [Reviewers and panels](/docs/reviewers#limits): the 1 to 10 reviewer limit.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
