Skip to main content
Glama
PrefectHQ

prefect-mcp-server

Official
by PrefectHQ

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

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of work pools to return
filterNoJSON filter object for advanced querying. Supports all Prefect WorkPoolFilter fields.
workspace_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
errorYes
detailNo
successYes
work_poolsYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It describes the default compact output, full detail with ID filter, and filter operators. It does not mention auth or rate limits, but the read-only nature is inferred.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the main purpose, followed by details and examples. It is well-structured but slightly lengthy; however, every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the existence of an output schema, the description does not need to explain return values. It covers purpose, filtering, default vs full detail, usage guidelines, and examples, making it fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes all three parameters, achieving 67% coverage (context's claim). The description adds value by explaining filter operators and providing examples, enhancing understanding beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it gets work pools with optional filters, and distinguishes between compact summaries and full detail. It implicitly differentiates from sibling tools by focusing specifically on work pools, a unique resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides examples and notes that it's essential for debugging deployment issues. It explains filter operators but does not explicitly state when not to use this tool versus alternatives; however, the context is clear enough for an agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PrefectHQ/prefect-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server