update_panel_member
The CodePanel MCP tool that changes a panel member's model, effort, name, instructions or tier following, atomically, keeping its id and history.
On this page›
update_panel_member changes one panel member in place: its model, reasoning effort, name, instructions, path scope or whether it follows a cost tier. The member keeps its id and its review history. All the fields you send apply together or none do. It needs the panel:write scope.
When to call it
- To move one seat to another model or effort without removing and re-adding it. The seat can be a reviewer or the orchestrator.
- To rename a seat or rewrite its instructions:
systemPromptfor a reviewer,instructionsfor the orchestrator. - To keep a seat on the newest model of a tier, or to pin it again:
followTier. - Not to swap the whole lineup.
apply_paneldoes that from a goal, with an undo.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
agentId |
string | yes | Id of a reviewer or the orchestrator on the panel, from get_panel |
name |
string | no | |
instructions |
string | no | Orchestrator additions; empty string clears |
provider |
string | no | Provider id, from list_models |
modelId |
string | no | Model id exactly as list_models reports it |
reasoningEffort |
none or low or medium or high or xhigh or max |
no | How hard the model should think |
systemPrompt |
string | no | |
pathScope |
object or null | no | Reviewer trigger paths as globs; null clears. Runs before spending; matched reviewers get full context. |
pathScope.include |
array of strings | no | |
pathScope.exclude |
array of strings | no | |
followTier |
economy or balanced or frontier or null |
no | Keep this member on the tier's newest model CodePanel can reach, checked nightly; null pins it to its current model. Choosing a different model pins it unless followTier is passed too. |
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.
agentId is a member's _id from get_panel. Send at least one field besides it, or the call is refused with Provide at least one member field to update.
- Model. Pass
providerandmodelIdtogether. The model must be one your key reports (list_models). A seat named after its old model (Sonnet 5.5) is renamed after the new one. A name you chose, or a role name, is kept. - Pinning. Changing the model pins a seat that followed a tier, so the nightly check no longer moves it. Pass
followTierin the same call to keep it following.followTier: "economy","balanced"or"frontier"also moves the seat at once if that tier has a better model.nullpins the seat to its current model. - Instructions.
systemPromptis for reviewers andinstructionsfor the orchestrator, whose built-in prompt cannot be replaced. An empty string clears either. Each is at most 4,000 characters, and anameat most 40. pathScopeis for reviewers only:{"include": [...], "exclude": [...]}, ornullto clear it. Seeadd_reviewerfor its limits.- Fields you leave out stay as they are.
A refused update commits nothing, and the error ends Nothing was applied; all requested fields remain unchanged. These reasons can come before it:
| Reason | Cause |
|---|---|
The orchestrator's built-in prompt can't be replaced. Pass instructions instead of systemPrompt. |
systemPrompt on the orchestrator |
Set a reviewer's instructions with systemPrompt. |
instructions on a reviewer |
Path scopes apply only to reviewers. |
pathScope on the orchestrator |
<model> is not available to your <provider> key. Refresh the model list in Settings. |
A model your key did not report |
An unknown or foreign agentId gets Reviewer not found.
What it returns
ok: trueandapplied: true.member: the saved seat, asget_panellists it, with awarningsentry when the model has no known price.
A refused request comes back as an error, not as a result. Over the HTTP API the error body also carries applied: false and the fields you asked for.
Examples
These responses come from a test account on a local backend.
Rename a reviewer and make it follow the economy tier
{
"agentId": "k57b8y5bqd1gee3qj97hh43e8x8j692c",
"name": "Server performance",
"followTier": "economy"
}
{
"ok": true,
"applied": true,
"member": {
"_id": "k57b8y5bqd1gee3qj97hh43e8x8j692c",
"avatar": "robot",
"callable": true,
"followTier": "economy",
"isDefault": false,
"modelId": "claude-haiku-5-5",
"name": "Server performance",
"pathScope": {
"exclude": [],
"include": [
"src/server/**"
]
},
"priced": true,
"provider": "anthropic",
"providerName": "Anthropic",
"reasoningEffort": "low",
"slug": "performance",
"systemPrompt": "Focus on performance: queries or requests inside loops, missing indexes, unbounded reads or pagination, work repeated on every call, needless re-renders and large payloads. Say roughly how the cost grows. Report only concrete problems in the changed code, each with the file, what goes wrong and when. Skip style nits other reviewers will cover.",
"toolsSupported": true,
"totalCostUsd": 0,
"totalReviews": 0,
"warnings": []
}
}
The seat's _id is unchanged, and slug stays performance although the name changed. modelId is still claude-haiku-5-5: the tier had no better model to move the seat to.
The same step without MCP
| Surface | Form |
|---|---|
| CLI | codepanel panel update-member --reviewer <id> with --provider and --model, --effort, --name, --prompt, --instructions or --path-scope. It has no flag for followTier (CLI) |
| HTTP API | POST /panels/members/update |
What the server tells your agent
The description your agent reads when it lists the tools:
Atomically change a panel member while preserving its id and review history. Use name to rename, systemPrompt for reviewer instructions, instructions for additions to the orchestrator prompt; an empty string clears instructions. All fields remain unchanged if any field is refused. Returns the saved member. Pass provider and modelId together.
Related
get_panel: the member ids and their current settings.set_orchestrator: set only the orchestrator's model and effort, and create it if the panel has none.add_reviewer: add a seat instead of changing one.- Follow the newest model: when a following seat moves.
- Reviewers and panels: the same edits from the CLI and HTTP.
- MCP server: install, sign-in and every other tool.