Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_retry_execution

Retry failed n8n workflow executions by providing the execution ID to create a new execution attempt.

Instructions

Retry a failed execution.

Args:

  • id (string): Execution ID to retry

Returns: The new execution created from the retry.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • The handler function that executes the retry logic by calling the n8n API.
    async (params: z.infer<typeof IdParamSchema>) => {
      const execution = await post<N8nExecution>(`/executions/${params.id}/retry`);
      
      return {
        content: [{ type: 'text', text: `🔄 Execution retry started.\n\n${formatExecution(execution)}` }],
        structuredContent: execution
      };
    }
  • Registration of the n8n_retry_execution tool.
      server.registerTool(
        'n8n_retry_execution',
        {
          title: 'Retry n8n Execution',
          description: `Retry a failed execution.
    
    Args:
      - id (string): Execution ID to retry
    
    Returns:
      The new execution created from the retry.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: false,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof IdParamSchema>) => {
          const execution = await post<N8nExecution>(`/executions/${params.id}/retry`);
          
          return {
            content: [{ type: 'text', text: `🔄 Execution retry started.\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