Get Flow Runs
get-flow-runsRetrieve Power Automate flow run history filtered by status, date range, and environment to monitor execution results and troubleshoot workflow failures.
Instructions
Get flow run history for a specific Power Automate flow
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": {
"flowId": "<flowId>"
},
"name": "get-flow-runs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | The workflow ID (GUID) | |
| status | No | Filter by status: Succeeded, Failed, Running, Waiting, Cancelled | |
| startedAfter | No | Only return runs started after this date (ISO 8601) | |
| startedBefore | No | Only return runs started before this date (ISO 8601) | |
| maxRecords | No | Maximum number of runs to return (default: 50, max: 250) | |
| environment | No | Environment name (e.g. DEV, UAT). Uses default if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | ||
| totalCount | Yes | ||
| hasMore | Yes | ||
| runs | Yes |