n8n_execution_stats
Aggregate execution stats per workflow over a recent time window to identify flaky workflows and long-running executions.
Instructions
Aggregate execution stats over a recent window. Computes per-workflow counts (total/success/error/canceled/running/waiting), failure rate, avg + p95 runtime, last failure + last success timestamps. Composed read-only — paginates /executions and stops on the window boundary or maxExecutions. Useful for 'which workflows are flaky?' and 'what's running long?'. Pagination is best-effort: if truncated: true, increase maxExecutions or narrow sinceHours.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | No | Restrict stats to a single workflow id. Omit for per-workflow stats across the instance. | |
| sinceHours | No | Window in hours (default 24, max 168 = 7d). Pagination stops when an execution older than the window is seen. | |
| maxExecutions | No | Hard cap on executions inspected (default 1000). If `truncated: true`, increase this or narrow `sinceHours`. | |
| pageSize | No | Page size for /executions calls (default 250). |