get_execution
Retrieve specific workflow execution details by ID to monitor performance, debug issues, and analyze automation results from n8n workflows.
Instructions
Get a specific n8n execution by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:488-491 (handler)Primary MCP tool handler for 'get_execution'. Fetches execution data from N8nClient and returns formatted JSON response.private async handleGetExecution(args: { id: string }) { const execution = await this.n8nClient.getExecution(args.id); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess(execution), null, 2) }] }; }
- src/index.ts:196-196 (schema)Tool registration entry defining the name, description, and input schema (requires 'id' string).{ name: 'get_execution', description: 'Get a specific n8n execution by ID', inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] } },
- src/index.ts:290-291 (registration)Switch statement registration that routes 'get_execution' tool calls to the handler method.case 'get_execution': return await this.handleGetExecution(request.params.arguments as { id: string });
- src/n8n-client.ts:743-746 (helper)N8nClient helper method implementing the core logic: API GET request to /api/v1/executions/{id}.async getExecution(id: string): Promise<N8nExecution> { const response = await this.api.get<N8nApiResponse<N8nExecution>>(`/executions/${id}`); return response.data.data; }