get_latest_failure
Retrieve error details from failed Metaflow runs by scanning recent runs for failures and returning the failing step, task, exception, and stderr.
Instructions
Find failed runs and return error details.
Scans recent runs, finds all failures, and returns the failing step/task with exception and stderr for each.
Args: flow_name: Name of the flow. last_n_runs: How many recent runs to scan (default 20). namespace: Metaflow namespace to scope results (e.g. "user:npow"). Use get_config to find your default_namespace.
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": {
"flow_name": "<flow_name>"
},
"name": "get_latest_failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_name | Yes | ||
| last_n_runs | No | ||
| namespace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |