# get_inbox

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

The CodePanel MCP tool that reads everything across your agent app runs that waits on you, most blocking first, with fleet stats.

`get_inbox` reads everything across your agent app runs that waits on you, the item that holds up the most runs first, with the stats strip the desktop app shows. Each item names the call that settles it. It needs the `read` scope.

## When to call it

- **To clear what blocks your agents in as few calls as possible:** a permission many runs ask for is one item, answered for all of them with [`answer_batch`](/docs/mcp-server/answer_batch).
- **After a run ends on a budget stop or a stuck loop**, to see it with the others and settle it with [`retry_task`](/docs/mcp-server/retry_task) or [`dismiss_inbox_item`](/docs/mcp-server/dismiss_inbox_item).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |


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

## What it returns

`items`, most blocking first. Each has `id`, `kind` (`permission`, `question`, `review_blocked`, `budget_stop`, `plan_stop` for a run the model proxy stopped because the account has no plan ([Billing](/docs/billing#agent-runs)), `owner_end` for a run that ended needing you (`reason` `needs_owner`, `stuck`, `runner_lost` for a run whose runner stopped answering, which CodePanel ended as failed, or `gateway_unreachable` for a production-read run whose AI Gateway failed; `retry_task` runs it again), or `rule_off` for an autopilot rule CodePanel turned off after 3 failed tasks in a row, which has id `rule:<ruleId>`, no targets and `blocks` 0), `reason`, `summary`, `blocks` (how many runs it holds up), `since`, `targets` (each `runId`, `taskId`, `interruptId`, `title`, `repo`, `modelId`, `teamId`) and `nextAction`, the call that settles it.

`cut` is `true` when more interrupts wait than one read holds: settle these and read again.

`stats`: `running`, `queued` and `waiting` tasks, `succeededToday`, `mergeRate` of the latest agent pull requests GitHub closed (`null` with none) over `mergeSample`, and `spentTodayUsd` against `dayCapUsd`. `counted` is `false` while the account's existing tasks are still being counted for the first time.

## The same step without MCP

| Surface | Form |
| --- | --- |
| HTTP API | `GET /inbox` with the `read` scope |
| CLI | `codepanel inbox` |

## What the server tells your agent

The description your agent reads when it lists the tools:

> Use it to see everything across the account's runs that waits on the owner, and settle it in as few calls as possible. Items are sorted by blocks (how many runs each holds up); each has an id, kind (permission|question|review_blocked|budget_stop|plan_stop|owner_end|rule_off), summary, since (epoch ms), targets (each with runId, taskId, interruptId, title, repo, modelId, teamId) and nextAction, the call that settles it: answer_batch for a permission over every target, answer_interrupt for a question, retry_task or dismiss_inbox_item for an ended run (an owner_end with reason runner_lost is a run whose runner stopped answering, which CodePanel ended; retry_task runs it again; a plan_stop needs the account's owner to subscribe first: agent runs need a plan), update_rule with enabled true for a rule_off item (an autopilot rule CodePanel turned off after 3 failed tasks; its id is rule:<ruleId> and it has no targets). cut: true means more interrupts wait than one read holds; settle these and read again. stats: running, queued and waiting tasks, succeededToday, mergeRate of the latest agent pull requests (null with none closed), and spentTodayUsd against dayCapUsd.

## Related

- [`answer_batch`](/docs/mcp-server/answer_batch): answer a permission item for every run it blocks.
- [`answer_interrupt`](/docs/mcp-server/answer_interrupt): answer one question.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
