Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_get_workflow

Retrieve a complete workflow definition—nodes, connections, and settings—to inspect its structure or prepare updates before modifying it.

Instructions

Get full workflow definition (nodes, connections, settings). Use to inspect structure or prepare updates.

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_get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesWorkflow ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does convey that a complete definition is returned rather than a summary, which is useful. It says nothing about read-only safety, permissions/auth requirements, or behavior when the ID is invalid, leaving real gaps for a no-annotation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with what the tool returns before the usage hint, with no filler. The second sentence is generic but does useful routing work.

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 single-parameter read tool with no output schema, the description covers the essentials: it names the returned payload fields so the agent knows what to expect without an output schema. Missing error/invalid-ID behavior keeps it from a 5.

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?

Only one parameter exists and schema description coverage is 100%, so the baseline is 3. The description adds no guidance beyond the schema, such as whether 'workflowId' is an internal ID versus a name or URL slug.

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?

Uses a specific verb ('Get') plus resource ('full workflow definition') and enumerates what is returned (nodes, connections, settings). This clearly separates it from list_workflows or get_execution, though it does not name a sibling explicitly.

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?

'Use to inspect structure or prepare updates' gives implied context for when to call it, and hints that update tools come afterward. It stops short of naming an alternative (e.g., n8n_update_workflow_json) or stating when not to use it.

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