explain_run
Diagnose failed Power Automate flow runs by resolving the actual error from failed actions and pairing them with upstream action outputs so you can identify the root cause fast.
Instructions
Diagnose a run: which action failed, with what error, on what inputs.
This is the tool the portal makes you click twelve times to replicate, and the one a generic HTTP wrapper cannot give you, for two reasons:
The error is not on the action record. Failed actions come back with
error: null; the message sits in a SAS-signed blob referenced by outputsLink.uri. This tool follows that link for every failed action.A failure is rarely explained by the failing action alone. The cause is usually in what an EARLIER action produced. So the response pairs the failed action with the outputs of the actions that succeeded before it.
Returns: status overall run status failed_actions [{name, error, inputs}] - resolved error text, not null succeeded [{name, outputs}] - upstream context, in execution order hint where to look first
If failed_actions is empty and status is Failed, the failure was in the trigger, not the body - check the trigger's condition and inputs.
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_id": "<flow_id>",
"run_id": "<run_id>"
},
"name": "explain_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| flow_id | Yes |