get_work_pools
Retrieve Prefect work pools with optional filters to debug stuck flow runs. Returns compact summaries by default or full details for specific pools.
Instructions
Get work pools with optional filters.
Returns compact summaries by default (name, type, status, concurrency_limit). Filter by specific ID(s) for full detail including work queues, active worker counts, and descriptions. Essential for debugging deployment issues related to flow runs being stuck or not starting.
Filter operators:
any_: Match any value in list
like_: SQL LIKE pattern matching
Examples: - List all pools: get_work_pools() - Full detail: get_work_pools(filter={"id": {"any_": [""]}}) - Kubernetes pools: get_work_pools(filter={"type": {"any_": ["kubernetes"]}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of work pools to return | |
| filter | No | JSON filter object for advanced querying. Supports all Prefect WorkPoolFilter fields. | |
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | Yes | ||
| detail | No | ||
| success | Yes | ||
| work_pools | Yes |