Skip to main content
Glama

get_flow_run

Retrieve detailed information about a specific workflow execution using its unique identifier to monitor status, track progress, and analyze performance.

Instructions

Get details of a specific flow run by ID.

Args: flow_run_id: The flow run UUID

Returns: Flow run details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flow_run_idYes

Implementation Reference

  • The main handler function for the 'get_flow_run' MCP tool. It fetches the flow run details using Prefect client, adds a UI URL, and returns as TextContent.
    @mcp.tool async def get_flow_run( flow_run_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Get details of a specific flow run by ID. Args: flow_run_id: The flow run UUID Returns: Flow run details """ async with get_client() as client: flow_run = await client.read_flow_run(UUID(flow_run_id)) # Add UI link flow_run_dict = flow_run.dict() flow_run_dict["ui_url"] = get_flow_run_url(flow_run_id) return [types.TextContent(type="text", text=str(flow_run_dict))]
  • Helper function to generate the UI URL for a flow run, used in the get_flow_run handler.
    def get_flow_run_url(flow_run_id: str) -> str: base_url = PREFECT_API_URL.replace("/api", "") return f"{base_url}/flow-runs/{flow_run_id}"

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