# update_panel_member

URL: https://codepanel.ai/docs/mcp-server/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.

`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: `systemPrompt` for a reviewer, `instructions` for 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_panel`](/docs/mcp-server/apply_panel) does 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`](/docs/mcp-server/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 `provider` and `modelId` together. The model must be one your key reports ([`list_models`](/docs/mcp-server/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 `followTier` in 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. `null` pins the seat to its current model.
- **Instructions.** `systemPrompt` is for reviewers and `instructions` for the orchestrator, whose built-in prompt cannot be replaced. An empty string clears either. Each is at most 4,000 characters, and a `name` at most 40.
- **`pathScope`** is for reviewers only: `{"include": [...], "exclude": [...]}`, or `null` to clear it. See [`add_reviewer`](/docs/mcp-server/add_reviewer) for 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: true` and `applied: true`.
- `member`: the saved seat, as `get_panel` lists it, with a `warnings` entry 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

```json title="Call"
{
  "agentId": "k57b8y5bqd1gee3qj97hh43e8x8j692c",
  "name": "Server performance",
  "followTier": "economy"
}
```

```json title="Result"
{
  "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](/docs/cli#panels-models-and-keys)) |
| HTTP API | [`POST /panels/members/update`](/docs/api#post-panelsmembersupdate) |

## 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`](/docs/mcp-server/get_panel): the member ids and their current settings.
- [`set_orchestrator`](/docs/mcp-server/set_orchestrator): set only the orchestrator's model and effort, and create it if the panel has none.
- [`add_reviewer`](/docs/mcp-server/add_reviewer): add a seat instead of changing one.
- [Follow the newest model](/docs/choosing-models#follow-the-newest-model): when a following seat moves.
- [Reviewers and panels](/docs/reviewers#change-a-panel-from-an-agent): the same edits from the CLI and HTTP.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
