Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_stop_execution

Stop a running workflow execution in n8n by providing its unique ID to halt processing and manage automation tasks.

Instructions

Stop a running execution.

Args:

  • id (string): Execution ID to stop

Returns: The stopped execution details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • The handler function for the n8n_stop_execution tool, which calls the API endpoint to stop the specified execution.
      async (params: z.infer<typeof IdParamSchema>) => {
        const execution = await post<N8nExecution>(`/executions/${params.id}/stop`);
        
        return {
          content: [{ type: 'text', text: `🛑 Execution stopped.\n\n${formatExecution(execution)}` }],
          structuredContent: execution
        };
      }
    );
  • Registration block for the n8n_stop_execution tool.
      // ============ Stop Execution ============
      server.registerTool(
        'n8n_stop_execution',
        {
          title: 'Stop n8n Execution',
          description: `Stop a running execution.
    
    Args:
      - id (string): Execution ID to stop
    
    Returns:
      The stopped execution details.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof IdParamSchema>) => {
          const execution = await post<N8nExecution>(`/executions/${params.id}/stop`);
          
          return {
            content: [{ type: 'text', text: `🛑 Execution stopped.\n\n${formatExecution(execution)}` }],
            structuredContent: execution
          };
        }
      );

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