n8n_execution_stats
Aggregate execution stats to identify flaky or long-running workflows. Computes per-workflow counts, failure rate, and runtime percentiles from recent 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "n8n_execution_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageSize | No | Page size for /executions calls (default 250). | |
| sinceHours | No | Window in hours (default 24, max 168 = 7d). Pagination stops when an execution older than the window is seen. | |
| workflowId | No | Restrict stats to a single workflow id. Omit for per-workflow stats across the instance. | |
| maxExecutions | No | Hard cap on executions inspected (default 1000). If `truncated: true`, increase this or narrow `sinceHours`. |