Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by Jaskey15

get_workflow

Fetch a workflow's complete JSON definition by ID, including all nodes, connections, and settings, to inspect or reuse its exact configuration.

Instructions

Fetch the complete JSON definition of a specific workflow by ID. This includes all nodes, connections, and settings.

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": {
      "workflow_id": "<workflow_id>"
    },
    "name": "get_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflow_idYesThe ID of the workflow to fetch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does clearly signal a read operation and discloses what the response contains (nodes, connections, settings as JSON). It does not say what happens on an invalid or missing ID, nor whether the definition is a snapshot, draft, or live version.

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 tight sentences, front-loaded with the action and resource, followed by the payload detail. Nothing is redundant or padded.

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 single-parameter read tool with no output schema, the description adequately covers the return shape by naming the JSON components. The remaining gap is failure/edge-case behavior, which is minor for a simple fetch.

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%, so the single workflow_id parameter is already documented as 'The ID of the workflow to fetch'. The description adds only the framing that the ID selects one specific workflow; no format, source, or acquisition hint is provided.

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 ('Fetch') and resource ('complete JSON definition of a specific workflow') and enumerates the payload contents (nodes, connections, settings). The phrase 'a specific workflow by ID' implicitly contrasts with the listing sibling, but no sibling is named, so differentiation is inferred rather than explicit.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this versus list_workflows or get_executions, and no prerequisites or exclusions are stated. The agent must infer from 'by ID' that this is the deep-fetch path after a listing call.

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

Deploy Server

Other Tools