get_run_result
Retrieve the output or current status of a completed Hatchet workflow run using its run ID to monitor execution results.
Instructions
Get the result/output of a completed workflow run.
Args: run_id: The ID of the workflow run
Returns the run's output data if completed, or current status if still running.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "get_run_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes |
Implementation Reference
- src/hatchet_mcp/server.py:146-160 (handler)The handler function 'get_run_result' which retrieves the result of a workflow run using the Hatchet SDK.
async def get_run_result(run_id: str) -> dict: """ Get the result/output of a completed workflow run. Args: run_id: The ID of the workflow run Returns the run's output data if completed, or current status if still running. """ try: hatchet = get_hatchet_client() result = await hatchet.runs.aio_get_result(run_id) return {"run_id": run_id, "result": result} except Exception as e: return {"error": str(e), "run_id": run_id} - src/hatchet_mcp/server.py:145-146 (registration)Tool registration for 'get_run_result' using the @mcp.tool() decorator.
@mcp.tool() async def get_run_result(run_id: str) -> dict: