Skip to main content
Glama

n8n_deactivate_workflow

Stop a workflow from listening to triggers to prevent automatic execution while preserving configuration. Use before making structural changes to workflows.

Instructions

Stop a workflow from listening to triggers. Deactivating prevents automatic execution but preserves workflow configuration. Use before making structure changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesWorkflow ID to deactivate

Implementation Reference

  • The deactivateWorkflow method that executes the tool logic - makes a POST request to the n8n API endpoint /workflows/{id}/deactivate to stop a workflow from listening to triggers
    async deactivateWorkflow(id: string) {
      return this.request(`${this.apiBase}/workflows/${id}/deactivate`, {
        method: 'POST',
      });
    }
  • Tool definition for n8n_deactivate_workflow with inputSchema (requires workflow ID), description, and annotations (title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint)
    {
      name: 'n8n_deactivate_workflow',
      description: 'Stop a workflow from listening to triggers. Deactivating prevents automatic execution but preserves workflow configuration. Use before making structure changes.',
      inputSchema: {
        type: 'object',
        properties: {
          id: { type: 'string', description: 'Workflow ID to deactivate' },
        },
        required: ['id'],
      },
      annotations: {
        title: 'Deactivate Workflow',
        readOnlyHint: false,
        destructiveHint: false,
        idempotentHint: true,
        openWorldHint: true,
      },
    },
  • src/server.ts:37-38 (registration)
    Routing in handleToolCall function that maps 'n8n_deactivate_workflow' tool name to client.deactivateWorkflow(args.id) handler call
    case 'n8n_deactivate_workflow':
      return client.deactivateWorkflow(args.id);

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/node2flow-th/n8n-management-mcp-community'

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