CodePanel
remove_reviewer

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.

On this page›

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 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 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: 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

Call
{
  "panelId": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
  "agentId": "k57b8y5bqd1gee3qj97hh43e8x8j692c"
}
Result
{
  "ok": true
}

Try to remove the orchestrator

The agentId here is the panel's orchestrator.

Call
{
  "panelId": "vs70ed0fnnwbezvqqcyskr6xvn8j7syc",
  "agentId": "k5775rqpcnqr3m3mz31d47xr5h8j7kcm"
}
Result (isError: true)
CodePanel: That reviewer is not on this panel.

To change the orchestrator, use 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)
HTTP API POST /panels/reviewers/remove

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.

Last updated