Skip to main content
Glama

Prefect MCP Server

set_task_run_state

Update the execution status of a Prefect workflow task run by setting it to states like SCHEDULED, RUNNING, COMPLETED, or FAILED to manage task lifecycle and track progress.

Instructions

Set a task run's state.

Args: task_run_id: The task run UUID state: The new state to set (e.g., "SCHEDULED", "RUNNING", "COMPLETED", "FAILED") message: An optional message explaining the state change

Returns: Result of the state change operation

Input Schema

NameRequiredDescriptionDefault
messageNo
stateYes
task_run_idYes

Input Schema (JSON Schema)

{ "properties": { "message": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Message" }, "state": { "title": "State", "type": "string" }, "task_run_id": { "title": "Task Run Id", "type": "string" } }, "required": [ "task_run_id", "state" ], "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