Skip to main content
Glama

n8n_diff_workflow

Compare a workflow's current state against a snapshot (file or inline) and return a structured semantic diff of nodes added, removed, or modified.

Instructions

Compare a workflow's current state against a snapshot (file path or inline object). Returns a structured semantic diff: nodes added/removed/modified (with per-node field paths), plus name/connections/settings change flags. Snapshot accepts both n8n_save_workflow backup shape (flat) and n8n_get_workflow(includeDefinition=true) shape (nested). Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesWorkflow id to fetch as the 'after' side of the diff.
snapshotPathNoPath to a JSON snapshot file (e.g. n8n_save_workflow backup). MUST resolve inside the configured backupDir (default ~/.n8n-backups); paths outside it or with `..` traversal are rejected. Use this OR `snapshot`.
snapshotNoInline snapshot object — accepts the flat backup shape OR the nested n8n_get_workflow(includeDefinition=true) shape. Use this OR `snapshotPath`.
ignoreCosmeticNoSuppress position-only and webhookId-only node changes (default true).
maxModifiedDetailsNoCap on per-node modification entries returned in `diff.nodesModified` (default 50). Counters in `summary` are NOT capped.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It declares the tool is read-only, describes the output shape, and notes accepted snapshot formats. It does not mention error conditions or path restrictions explicitly, but those are covered in the schema descriptions.

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 concise sentences, front-loaded with purpose, no fluff. Every sentence adds essential information.

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?

Given the complexity (5 parameters, no output schema), the description adequately covers the return value structure and snapshot format compatibility. It could mention potential error scenarios but is sufficient for agent invocation.

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?

Schema descriptions cover 100% of parameters with detailed explanations. The description adds value by explaining that the snapshot can be in two different shapes, which is not fully captured in the schema. This goes beyond what the schema alone provides.

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 the tool compares a workflow's current state against a snapshot and returns a structured semantic diff. It explicitly lists what the diff contains (nodes added/removed/modified with per-node field paths, change flags). This distinguishes it from sibling tools which are listing, auditing, or execution-related.

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?

The description implies usage for comparing workflow states but does not explicitly state when to use this tool vs alternatives or when not to use it. However, given the sibling tools, none perform diffing, so context is clear.

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