# list_teams

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

The CodePanel MCP tool that lists the agent app's teams: each orchestrator, the agents it hands work to, its rules, caps, and what would stop a run.

`list_teams` reads the account's agent app teams: the orchestrator that splits a task, the coding agents it hands subtasks to, the rules that pick one, and the caps every run of the team is held to. It needs the `read` scope.

## When to call it

- **Before starting a task:** to see which team a repository's tasks get, and whether it would start now (`problems` is empty).
- **Before changing a team:** to get its `id` for [`update_team`](/docs/mcp-server/update_team) or [`remove_team`](/docs/mcp-server/remove_team).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `detail` | boolean | no | Add the agents, rules and timestamps; compact without it |
| `limit` | integer, at most 50 | no | Items per page, default 20 |
| `cursor` | string | no | nextCursor from the previous page |

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

Compact by default. `detail: true` adds each agent by name, role, model, budget and what pays for it, the delegation rules and the timestamps. The list is paged with `limit` and `cursor`.

## What it returns

`{ teams, total, nextCursor }`, the default team first. Each compact team has `id`, `name`, `orchestratorId`, `memberIds`, the caps (`maxDepth`, `maxRunning`, `maxSubtasks`, `runUsd`), `repo`, `isDefault` and `problems`: why a run would not start now, such as an agent whose model no key or credit balance reaches.

## The same step without MCP

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

## What the server tells your agent

The description your agent reads when it lists the tools:

> Use it to see which orchestrator, agents, rules and caps a task's run gets. The account's teams, the default first. Compact by default: id, name, orchestratorId, memberIds, maxDepth, maxRunning, maxSubtasks, runUsd, repo (the repository it serves, or null), isDefault, and problems (why a run would not start now, such as an agent whose model no key reaches; empty when it would). detail: true adds the orchestrator and members by name, role, model, budget and source, the delegation rules and timestamps. Paged: limit and cursor; total counts every team.

## Related

- [`create_team`](/docs/mcp-server/create_team): make a team.
- [`list_coding_agents`](/docs/mcp-server/list_coding_agents): the agents a team is made of.
- [MCP server](/docs/mcp-server): install, sign-in and every other tool.
