compare_runs
Diff a failed Power Automate run against a baseline to find diverged actions, status changes, and output differences causing the failure.
Instructions
Diff a failed run against a working one to find what changed.
Use this when explain_run gives you an error that is technically clear but does not tell you WHY this run differed - intermittent failures, "it worked yesterday", data-dependent bugs. The portal makes you open two runs in two tabs and eyeball them side by side.
baseline_run_id is optional. Left empty, the tool finds the most recent
Succeeded run of the same flow and uses that.
Returns: diverged_at first action whose status differs - start here status_changes [{action, baseline, failed}] every action that behaved differently output_changes [{action, baseline, failed}] actions that succeeded in BOTH runs but produced different outputs. This is usually the real cause. only_in_failed / only_in_baseline actions that ran in one and not the other, which means a condition or branch evaluated differently
If output_changes is empty and status_changes shows the same action failing both times, the failure is deterministic and the fix is in the definition, not the data.
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>",
"failed_run_id": "<failed_run_id>"
},
"name": "compare_runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow_id | Yes | ||
| failed_run_id | Yes | ||
| baseline_run_id | No |