Skip to main content
Glama

n8n_export_workflow

Export an n8n workflow as JSON by providing its ID. Returns the full workflow definition for backup or import into another n8n instance.

Instructions

Export a workflow from an n8n server as JSON. Returns the complete workflow definition that can be imported into another n8n instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_nameNoServer name. Uses default if omitted.
workflow_idYesn8n workflow ID to export

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A3.8/5.0
Behavior2/5

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

No annotations provided, so description carries full burden. It mentions returning a complete workflow definition but does not disclose whether the operation is read-only, requires specific permissions, or any side effects.

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?

The description is two sentences, front-loaded with the action and output. No redundant 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?

For a simple tool with 2 parameters and no output schema, the description is mostly complete. It covers the return value and purpose. Missing details like error conditions or prerequisites, but adequate for the complexity.

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 coverage is 100% with descriptions. The description adds value by noting that 'server_name' uses default if omitted, which is not in the schema. However, it doesn't elaborate on format or constraints beyond the schema.

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 action ('Export'), the resource ('workflow'), and the output format ('JSON'). It distinguishes from siblings like n8n_get_workflow by emphasizing the complete definition for import.

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?

Implied usage: exporting for backup or migration. No explicit guidance on when to use vs. alternatives like n8n_get_workflow or conditions for use.

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