Skip to main content
Glama

list_executions

Retrieve workflow execution history from n8n to monitor performance, track results, and analyze past runs for optimization.

Instructions

List n8n workflow executions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNo
workflowIdNo

Implementation Reference

  • src/index.ts:195-195 (registration)
    Registration of the 'list_executions' tool in the ListToolsRequestSchema handler, defining name, description, and input schema.
    { name: 'list_executions', description: 'List n8n workflow executions', inputSchema: { type: 'object', properties: { limit: { type: 'number' }, cursor: { type: 'string' }, workflowId: { type: 'string' } } } },
  • MCP tool handler for 'list_executions' that delegates to N8nClient.listExecutions and formats the response as MCP content.
    private async handleListExecutions(args: { limit?: number; cursor?: string; workflowId?: string }) { const executions = await this.n8nClient.listExecutions(args); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess(executions), null, 2) }] }; }
  • Core helper method in N8nClient that performs the HTTP GET request to n8n's /api/v1/executions endpoint with query parameters for pagination and filtering.
    async listExecutions(options?: { limit?: number; cursor?: string; workflowId?: string }): Promise<N8nExecutionsListResponse> { const params = new URLSearchParams(); if (options?.limit) params.append('limit', options.limit.toString()); if (options?.cursor) params.append('cursor', options.cursor); if (options?.workflowId) params.append('workflowId', options.workflowId); const url = `/executions${params.toString() ? `?${params.toString()}` : ''}`; const response = await this.api.get<N8nExecutionsListResponse>(url); return response.data; }
  • Dispatch in CallToolRequestSchema handler that routes 'list_executions' calls to the specific handler method.
    case 'list_executions': return await this.handleListExecutions(request.params.arguments as { limit?: number; cursor?: string; workflowId?: string });

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

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