Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_update_workflow

Modify existing n8n workflows by updating their name, nodes, connections, settings, or tags. Provide complete arrays for nodes and connections to replace current configurations.

Instructions

Update an existing workflow. Can update name, nodes, connections, settings, or tags.

⚠️ IMPORTANT: When updating nodes or connections, you must provide the COMPLETE arrays. Partial updates are not supported - the provided values will replace existing ones.

Args:

  • id (string): Workflow ID to update (required)

  • name (string, optional): New workflow name

  • nodes (array, optional): Complete updated nodes array

  • connections (object, optional): Complete updated connections

  • settings (object, optional): Updated settings

  • tags (array, optional): Updated tag IDs

Returns: The updated workflow object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesWorkflow ID to update
nameNoNew workflow name
nodesNoUpdated nodes array
connectionsNoUpdated connections
settingsNoUpdated settings
staticDataNoUpdated static data
tagsNoUpdated tag IDs

Implementation Reference

  • The definition and handler implementation for the n8n_update_workflow tool. It uses the `put` utility to send a request to the n8n API.
      server.registerTool(
        'n8n_update_workflow',
        {
          title: 'Update n8n Workflow',
          description: `Update an existing workflow. Can update name, nodes, connections, settings, or tags.
    
    ⚠️ IMPORTANT: When updating nodes or connections, you must provide the COMPLETE arrays.
    Partial updates are not supported - the provided values will replace existing ones.
    
    Args:
      - id (string): Workflow ID to update (required)
      - name (string, optional): New workflow name
      - nodes (array, optional): Complete updated nodes array
      - connections (object, optional): Complete updated connections
      - settings (object, optional): Updated settings
      - tags (array, optional): Updated tag IDs
    
    Returns:
      The updated workflow object.`,
          inputSchema: UpdateWorkflowSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof UpdateWorkflowSchema>) => {
          const { id, ...updateData } = params;
          const workflow = await put<N8nWorkflow>(`/workflows/${id}`, updateData);
          
          return {
            content: [{ type: 'text', text: `✅ Workflow updated successfully!\n\n${formatWorkflow(workflow)}` }],
            structuredContent: workflow
          };
        }
      );

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/DrBalls/n8n-mcp-server-v2'

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