# get_cloud_swarm

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

The CodePanel MCP tool that reads one cloud swarm's summary, coordinator digest, and per-item results.

`get_cloud_swarm` reads one cloud swarm by `swarmId`, including its coordinator digest and every item's output, status, token counts, and spend. It needs the `read` scope.

## When to call it

- **After calling [`start_cloud_swarm`](/docs/mcp-server/start_cloud_swarm)** to poll until `swarm.status` is `completed`, `partial`, or `failed`.
- **To inspect individual item outputs or errors** alongside the synthesized `digest`.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `swarmId` | string | yes | Cloud swarm id, from start_cloud_swarm or list_cloud_swarms |

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

## What it returns

`swarm` (summary with `status`, counts, `usd`, `maxUsd`, and `digest`) and `items` (ordered list with `itemId`, `position`, `status`, `output`, `error`, `tokensIn`, `tokensOut`, `usd`, and `durationMs`).

## The same step without MCP

| Surface | Form |
| --- | --- |
| HTTP API | `GET /cloud/swarms/get` with the `read` scope |
| CLI | `codepanel cloud-swarm get <swarmId>` |

## What the server tells your agent

The description your agent reads when it lists the tools:

> Use it to inspect one cloud swarm run by swarmId, including its coordinator digest and each item's status, output, error, token counts, and spend.

## Related

- [`start_cloud_swarm`](/docs/mcp-server/start_cloud_swarm): start a new parallel cheap-model cloud swarm.
- [`list_cloud_swarms`](/docs/mcp-server/list_cloud_swarms): list recent cloud swarms.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
