Skip to main content
Glama
PrefectHQ

prefect-mcp-server

Official
by PrefectHQ

get_deployments

Retrieve Prefect deployments with optional filters for status, tags, or names. Use compact summaries by default or full details with specific IDs.

Instructions

Get deployments with optional filters.

Returns compact summaries by default. Filter by specific ID(s) for full detail including parameters, parameter_openapi_schema, job_variables, work_pool details, and recent_runs.

Filter operators:

  • any_: Match any value in list

  • all_: Match all values

  • like_: SQL LIKE pattern matching

  • not_any_: Exclude values

  • is_null_: Check for null/not null

  • eq_/ne_: Equality comparisons

Examples: - List all deployments: get_deployments() - Full detail: get_deployments(filter={"id": {"any_": [""]}}) - Active deployments: get_deployments(filter={"paused": {"eq_": False}}) - Production deployments: get_deployments(filter={"tags": {"all_": ["production"]}})

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
errorYes
detailNo
successYes
deploymentsYes
Behavior3/5

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

No annotations provided, so description must carry full burden. Discloses compact vs full detail, filter operators, and examples. However, does not state idempotence, read-only nature, or pagination behavior beyond limit parameter. Adequate but not comprehensive.

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?

Description is succinct and front-loaded with key behavior ('Get deployments with optional filters'). Filter operators are listed in a structured, easy-to-read format. Could be slightly shorter, but effective.

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

Completeness4/5

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

Given 3 parameters and an output schema, description covers filter usage well and explains return detail differences. Missing mention of what happens with large result sets (though limit is present) and default behavior when no filter is applied. Overall sufficient.

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

Parameters5/5

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

Extensive explanation of filter operators with examples (any_, all_, like_, etc.) and how to use them. Adds significant meaning beyond the schema's terse description of the filter object. Limit and workspace_id are also clarified in schema, but filter gets rich documentation.

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?

Clear verb 'get' and resource 'deployments'. Distinguishes from siblings by specifying it retrieves deployment objects, while siblings target other entities (flows, runs, etc.). Examples and filter details reinforce purpose.

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?

Describes when to use filters and how to get full detail vs compact summaries. Provides explicit examples. Lacks when-not-to-use guidance, but the tool's scope is clear enough.

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