> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agents.labs.bandwidth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List agents

> MCP reference for list_workflows.

Tool: `list_agents` / `list_workflows`. Requires **Viewer or higher** in the applicable workspace and a connected [OAuth session](https://docs.agents.labs.bandwidth.com/mcp/authentication.md).

Available under both `list_agents` and `list_workflows`, with the same arguments and result. Returns all matching agent IDs, names, lifecycle states, creation times, and assistant modes, including agents with no calls. An empty result is valid.

Use a returned `id` as `workflow_id`. The optional lifecycle filter accepts draft, active, paused, or archived. The returned assistant mode distinguishes a single-prompt agent from a workflow canvas.

## Arguments

| Name | Type | Required | Defaults and limits |
| - | - | - | - |
| `lifecycle_status` | string or null | No | Default: `null` |

## Example arguments

Replace sample resource IDs with IDs returned in your selected workspace.

```json theme={null}
{}
```

## Result and errors

The schema below describes MCP `structuredContent`, including the `result` wrapper where present. Your client may also display a text representation. Read success flags and structured errors before continuing; transport success alone does not prove the operation succeeded. Authentication, missing membership, and insufficient role can fail before a tool result is produced. See [troubleshooting](https://docs.agents.labs.bandwidth.com/mcp/troubleshooting.md).

**Effect:** Reads data. **Retry:** Declared idempotent. Discovery annotations describe behavior; they do not grant permission or replace confirmation for consequential actions.

> [accordion] Input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "lifecycle_status": {
>       "anyOf": [
>         {
>           "enum": [
>             "draft",
>             "active",
>             "paused",
>             "archived"
>           ],
>           "type": "string"
>         },
>         {
>           "type": "null"
>         }
>       ],
>       "default": null
>     }
>   },
>   "type": "object"
> }
> ```

> [accordion] Result schema
>
> ```json theme={null}
> {
>   "properties": {
>     "result": {
>       "items": {
>         "properties": {
>           "assistant_mode": {
>             "enum": [
>               "single_prompt",
>               "workflow"
>             ],
>             "type": "string"
>           },
>           "created_at": {
>             "anyOf": [
>               {
>                 "type": "string"
>               },
>               {
>                 "type": "null"
>               }
>             ]
>           },
>           "id": {
>             "type": "integer"
>           },
>           "lifecycle_status": {
>             "enum": [
>               "draft",
>               "active",
>               "paused",
>               "archived"
>             ],
>             "type": "string"
>           },
>           "name": {
>             "type": "string"
>           }
>         },
>         "required": [
>           "id",
>           "name",
>           "lifecycle_status",
>           "created_at",
>           "assistant_mode"
>         ],
>         "type": "object"
>       },
>       "type": "array"
>     }
>   },
>   "required": [
>     "result"
>   ],
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.