Skip to main content
Glama

Check an n8n workflow file

check_n8n_workflow
Read-onlyIdempotent

Validates an n8n workflow file to find issues that block import or execution, such as broken connections, duplicate node names, REPLACE-ME placeholders, and unset credentials. Returns one line per problem.

Instructions

Check an n8n workflow JSON file for problems that stop it from importing or running: broken connections, duplicate node names, disabled steps left, REPLACE-ME placeholders and credentials still to pick. Use it after the user finished steps by hand, or on any n8n workflow. Returns one line per problem (error, warning or info), or "No problems found". Reads the file only; writes nothing.

Input Schema

NameRequiredDescriptionDefault
jsonNoThe full contents of the exported file, when the user pasted or attached it instead of giving a path. Give either path or json, not both.
pathNoAbsolute path of the exported file on this computer (~ is the home folder). Give either path or json, not both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / json / description
      Previous value: -"The exported file contents, when the user pasted or attached it"New value: +"The full contents of the exported file, when the user pasted or attached it instead of giving a path. Give either path or json, not both."
    • changedInput schema / properties / path / description
      Previous value: -"Path to the exported file on this computer"New value: +"Absolute path of the exported file on this computer (~ is the home folder). Give either path or json, not both."
  2. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so "reads the file only; writes nothing" is largely redundant. The description does earn its keep by disclosing the return shape (one line per problem tagged error/warning/info, or "No problems found"), which annotations cannot convey and which no output schema covers.

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?

Three tight sentences: what it checks, when to use it, what it returns, then a one-clause safety note. The defect list is front-loaded and every clause carries information an agent needs.

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?

For a two-parameter read-only validator with no output schema, the description covers purpose, trigger, detected problem classes and return format. Combined with annotations that already handle the safety profile, nothing material is missing before an agent can call it correctly.

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

Parameters3/5

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

Schema coverage is 100% and both parameters already carry descriptions including the "give either path or json, not both" mutual exclusivity rule. The description adds nothing about parameter meaning or precedence, so the baseline of 3 applies.

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?

States a specific verb and resource (check an n8n workflow JSON file) and enumerates the exact defect classes it detects: broken connections, duplicate node names, disabled steps, REPLACE-ME placeholders, missing credentials. The scope is clearly limited to n8n, which separates it from the convert_make/convert_zapier siblings in the same family.

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?

"Use it after the user finished steps by hand, or on any n8n workflow" gives a concrete trigger condition and broadens it to a catch-all. It does not explicitly exclude or name alternatives (e.g., suggesting convert_zapier when the source is Zapier), so it stops short of full routing guidance.

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