# list_swarms

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

The CodePanel MCP tool that lists team runs as swarms, with subtask progress and spend against the team's cap.

`list_swarms` lists your team runs as swarms: for each one, how far its subtasks have got and what it has spent against the team's cap. Live swarms come first. It needs the `read` scope.

## When to call it

- **To see how the team runs are going** without reading each run with [`get_run`](/docs/mcp-server/get_run).
- **Before stopping or retrying many tasks** with [`bulk_tasks`](/docs/mcp-server/bulk_tasks).

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

`swarms`, live ones first, then the latest ended ones, newest first. Each has `runId`, `taskId`, `title`, `team` (its name), `repo`, `status`, `live`, the subtasks `total`, `merged` (done, and not blocked by their review), `running` and `failed`, `usd` spent against `capUsd` (the team's cap per run), and `startedAt`.

## The same step without MCP

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

## What the server tells your agent

The description your agent reads when it lists the tools:

> Use it to see how the account's team runs are going at a glance: each swarm (one team run) with its team, task title, repo, status, live (not ended), subtasks total, merged, running and failed, and usd spent against capUsd, the team's cap per run. Live swarms first, then the latest ended ones, newest first. Read one in full with get_run (runId); stop or retry many tasks at once with bulk_tasks.

## Related

- [`get_run`](/docs/mcp-server/get_run): one swarm's run in full, with each subagent's spend.
- [`list_teams`](/docs/mcp-server/list_teams): the teams and their caps.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
