Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_create_workflow

Create an n8n workflow with pre-flight validation and automatic fixes for settings, node ports, webhook IDs, and code versions before activation.

Instructions

Create a new n8n workflow with pre-flight validation and auto-fix. Automatically fixes: Code v2→v1, missing settings, webhookId, SplitInBatches ports, MongoDB alwaysOutputData, ExecuteWorkflow workflowId format, node name spaces. After creation use n8n_activate_workflow to enable.

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": {
      "name": "<name>",
      "nodes": "<nodes>",
      "connections": "<connections>"
    },
    "name": "n8n_create_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWorkflow name
nodesYesArray of n8n node definitions
settingsNoWorkflow settings. Auto-added if omitted.
connectionsYesConnection map: {NodeName: {main: [[{node, type, index}]]}}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full behavioral burden and does substantial work by enumerating the silent mutations it performs (Code v2→v1, webhookId, SplitInBatches ports, MongoDB alwaysOutputData, workflowId format, node name spaces). It does not say whether validation failures block creation, whether fixes are logged, or what is returned, leaving error and output behavior undocumented.

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?

The creation action and next-step handoff are front-loaded, and the auto-fix list is dense but each item conveys distinct behavior. The enumeration is long yet earns its place; no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description covers side effects well but never states the return value (e.g., the created workflow ID) that the follow-up n8n_activate_workflow call would need. The picture is adequate but leaves the agent guessing about the response shape.

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%, so the baseline is 3, but the description adds real semantic meaning about the 'nodes' and 'settings' payloads by naming the specific node-level defects that will be rewritten automatically. That informs what the agent may safely pass in versus what will be mutated, going beyond the schema's terse 'Array of n8n node definitions'.

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?

The description opens with a specific verb and resource ('Create a new n8n workflow') and distinguishes the operation from updates by emphasizing 'new'. It does not explicitly contrast with n8n_update_workflow or n8n_update_workflow_json, so an agent must infer that boundary, but the core purpose is unmistakable.

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?

It gives a concrete next-step handoff ('After creation use n8n_activate_workflow to enable'), which tells the agent what this tool does not cover. It offers no when-not guidance or preconditions for creation itself, so it falls short of explicit alternative routing.

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