Skip to main content
Glama

delete_flow_run

Remove a specific workflow execution from Prefect's automation platform by providing its unique identifier to clean up completed or failed runs.

Instructions

Delete a flow run.

Args: flow_run_id: The flow run UUID

Returns: Confirmation message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_run_idYes

Implementation Reference

  • The handler function for the 'delete_flow_run' tool. It is decorated with @mcp.tool, which registers it with the MCP server. The function takes a flow_run_id, uses the Prefect client to delete the flow run, and returns a confirmation message.
    @mcp.tool async def delete_flow_run( flow_run_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Delete a flow run. Args: flow_run_id: The flow run UUID Returns: Confirmation message """ async with get_client() as client: await client.delete_flow_run(UUID(flow_run_id)) return [types.TextContent(type="text", text=f"Flow run '{flow_run_id}' deleted successfully.")]

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

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