get_flow_runs
Fetch Prefect flow runs with optional filters. Monitor workflow status, debug failures, and review run details by ID, state, or tags.
Instructions
Get flow runs with optional filters.
Returns compact summaries by default. Filter by specific ID(s) for full detail including parameters, inlined deployment info, and work pool info.
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
after_/before_: Time comparisons
gt_/gte_/lt_/lte_: Numeric comparisons
Examples: - List recent runs: get_flow_runs() - Get specific run: get_flow_runs(filter={"id": {"any_": [""]}}) - Failed runs: get_flow_runs(filter={"state": {"type": {"any_": ["FAILED"]}}}) - Production runs: get_flow_runs(filter={"tags": {"all_": ["production"]}})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of flow runs to return | |
| filter | No | JSON filter object for advanced querying. Supports all Prefect FlowRunFilter fields. | |
| workspace_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| error | Yes | ||
| detail | No | ||
| success | Yes | ||
| flow_runs | Yes |