Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdNoRestrict stats to a single workflow id. Omit for per-workflow stats across the instance.
sinceHoursNoWindow in hours (default 24, max 168 = 7d). Pagination stops when an execution older than the window is seen.
maxExecutionsNoHard cap on executions inspected (default 1000). If `truncated: true`, increase this or narrow `sinceHours`.
pageSizeNoPage size for /executions calls (default 250).
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Declares itself 'composed read-only', explains pagination against /executions, mentions best-effort pagination and truncation. No annotations present, so description handles transparency well.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise two-sentence core, followed by usage phrase and pagination note. No wasted words; front-loaded with purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers parameters, usage, behavior, and limitations. Lacks output format details (e.g., map per workflow), but acceptable for an aggregation tool without output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Adds context beyond schema: workflowId optional for per-instance stats, sinceHours window stops pagination, maxExecutions with truncation hint, pageSize default. Schema coverage is 100%, but description enriches understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Aggregate execution stats over a recent window' and lists computed fields (counts, failure rate, runtimes, timestamps). It distinguishes from siblings like n8n_list_executions by focusing on aggregation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides practical use cases ('which workflows are flaky?') and pagination advice ('if truncated: true, increase maxExecutions or narrow sinceHours'). However, it does not explicitly contrast with alternatives like n8n_search_executions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lidless-labs/n8n-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server