Skip to main content
Glama

Prefect MCP Server

get_task_runs

Retrieve task runs from Prefect workflows with filtering options for task name, state, tags, and time ranges to monitor and analyze workflow execution.

Instructions

Get a list of task runs with optional filtering.

Args: limit: Maximum number of task runs to return offset: Number of task runs to skip task_name: Filter by task name state_type: Filter by state type (e.g., "RUNNING", "COMPLETED", "FAILED") state_name: Filter by state name tags: Filter by tags start_time_before: ISO formatted datetime string start_time_after: ISO formatted datetime string

Returns: A list of task runs with their details

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
start_time_afterNo
start_time_beforeNo
state_nameNo
state_typeNo
tagsNo
task_nameNo

Input Schema (JSON Schema)

{ "properties": { "limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Limit" }, "offset": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "default": null, "title": "Offset" }, "start_time_after": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Start Time After" }, "start_time_before": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Start Time Before" }, "state_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "State Name" }, "state_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "State Type" }, "tags": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Tags" }, "task_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Task Name" } }, "type": "object" }

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/allen-munsch/mcp-prefect'

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