Skip to main content
Glama

n8n_create_workflow

Create n8n workflows programmatically by specifying name, nodes, and connections. The workflow is created inactive and returns its ID for later use.

Instructions

Create workflow. Requires: name, nodes[], connections{}. Created inactive. Returns workflow with ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesWorkflow name (required)
nodesYesArray of workflow nodes. Each node must have: id, name, type, typeVersion, position, and parameters
settingsNoOptional workflow settings (execution order, timezone, error handling)
projectIdNoOptional project ID to create the workflow in (enterprise feature)
nodeGroupsNoOptional canvas groups (n8n 2.28+): named frames around a connected run of non-trigger nodes. Members are node IDs from nodes[]. Dropped automatically on older n8n.
connectionsYesWorkflow connections object. Keys are source node names (the name field, not id), values define output connections
parentFolderIdNoOptional folder ID to place the workflow in (n8n 2.32+). Omit for the project root. Find or create folders with n8n_manage_folders.
Behavior4/5

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

Annotations already indicate the tool is not read-only and not destructive, and the description adds valuable context: 'Created inactive' and 'Returns workflow with ID'. It does not disclose potential side effects or permission requirements, but the annotations plus these key behaviors provide adequate transparency.

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 concise sentences: the first states the core action, the second lists requirements and key behavior. It is front-loaded and every sentence adds necessary information without redundancy.

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 tool's moderate complexity (nested nodes/connections) and no output schema, the description covers the essential behavior (inactive creation, return with ID) and requirements. The schema fills in parameter details, so the description is adequate for invoking the tool correctly, though it could add more on connection structure or activation steps.

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?

The schema covers all parameters with descriptions, so the baseline is 3. The description only reiterates that name, nodes, and connections are required, and does not add semantic depth beyond the schema. It is not misleading or insufficient, but it adds minimal value.

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 verb 'Create' and the resource 'workflow', distinguishing it from sibling tools like n8n_update_partial_workflow and n8n_delete_workflow. It also specifies the required fields, making the tool's purpose unambiguous.

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?

The description provides prerequisites but gives no explicit guidance on when to use this tool versus alternatives like n8n_update_full_workflow or n8n_deploy_template. It does not mention when not to use it or how it differs from update/delete operations, leaving usage context largely to inference.

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/czlonkowski/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server