Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_diagnose_workflow

Run diagnostics on an n8n workflow without executing it to detect common pitfalls such as Code node versions, webhook paths, credential references, and SplitInBatches wiring.

Instructions

Run comprehensive diagnostics on a workflow without executing it. Checks all known n8n pitfalls: Code node versions, webhook paths, credential refs, SplitInBatches wiring, MongoDB alwaysOutputData, etc.

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": {
      "workflowId": "<workflowId>"
    },
    "name": "n8n_diagnose_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the most important behavioral trait — no execution occurs — and names the checks performed, but says nothing about the output shape (warnings vs. errors, severity, counts), whether it is fully read-only, or any auth/permission requirements.

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?

Two sentences, zero waste, with the non-execution constraint front-loaded ahead of the detail list. Nothing needs trimming.

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

Completeness3/5

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

For a one-parameter read-only tool the scope statement is adequate, but with no output schema and no annotation coverage the description should at least sketch what the diagnostics return (per-check findings, pass/fail, severity) so an agent knows how to interpret the result.

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

Parameters2/5

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

There is one required parameter with 0% schema description coverage, so the description was expected to compensate. It never mentions workflowId, its expected format (numeric ID vs. string slug), or whether an invalid ID errors out — leaving the single input entirely undocumented.

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

Purpose4/5

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

States a specific verb and resource (run diagnostics on a workflow) and adds the crucial scope qualifier 'without executing it', which separates it from n8n_run_workflow. The enumerated pitfall categories confirm what 'diagnostics' concretely covers, though 'comprehensive' is a mild filler adjective.

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

Usage Guidelines3/5

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

It implies the use case (validate a workflow before running/activating) and the negative condition (does not execute), but never says when to prefer it over n8n_get_workflow or n8n_run_workflow, nor what to do with results. Usage is inferable rather than stated.

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