Skip to main content
Glama
AutomateLab-tech

automatelab-n8n-mcp

Explain a failed n8n execution

execution.explain
Read-onlyIdempotent

Diagnose failed n8n executions by pasting execution JSON. Returns per-node summary highlighting silent item loss, unresolved expressions, errors, and LLM token usage.

Instructions

Diagnose a failed or surprising n8n execution. Paste the execution JSON (from the n8n UI 'Show details' or GET /executions/:id?includeData=true); returns a per-node summary highlighting nodes that returned 0 items, unresolved ={{ ... }} expressions, errors with hints, and LLM token usage. Hits the most common debugging pain point: items 'silently disappearing' between nodes. Deterministic, rule-based.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
executionYesn8n execution payload (REST `?includeData=true` shape or raw UI export). Object or JSON string.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
findingsYesPer-node findings extracted from the execution payload.
error_countYesNumber of error-severity findings.
warning_countYesNumber of warning-severity findings.
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. Description adds that it is deterministic and rule-based, and details what analysis covers (0-item nodes, unresolved expressions, errors, token usage). No contradiction.

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?

Four sentences, each delivering key info: purpose, input format, output highlights, common pain point. No redundant or unnecessary text. Front-loaded with primary purpose.

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

Completeness5/5

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

Given single parameter, clear annotations, and presence of output schema, the description covers all needed context: what tool does, what input to provide (with sourcing hints), and what output to expect. Also addresses edge case of silent item disappearance.

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

Parameters5/5

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

Only one parameter 'execution' with schema description covering 100%. The tool description adds practical guidance on how to obtain the JSON (UI 'Show details' or API call), which enriches the schema description.

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?

Description clearly states it diagnoses failed/surprising executions, with specific verb 'Diagnose' and resource 'n8n execution'. It distinguishes from sibling tools like 'execution.list' and 'execution.replay' by focusing on explanation rather than listing or replaying.

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?

Explicitly says when to use: for debugging failed or surprising executions. Provides guidance on obtaining input via UI or API. Lacks explicit when-not-to-use, but context implies it's post-execution only. Good but could be slightly more precise.

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/AutomateLab-tech/n8n-mcp'

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