get_execution
Retrieve detailed information about a specific n8n workflow execution using its unique ID. This tool helps you monitor and analyze individual workflow runs within the n8n automation platform.
Instructions
Get a specific n8n execution by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:488-490 (handler)MCP server handler for 'get_execution' tool. Delegates to N8nClient.getExecution and formats response as JSON.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/n8n-client.ts:743-745 (helper)Core N8nClient method that performs the API GET request to fetch execution details by ID.async getExecution(id: string): Promise<N8nExecution> { const response = await this.api.get<N8nApiResponse<N8nExecution>>(`/executions/${id}`); return response.data.data;
- src/index.ts:196-196 (registration)Tool registration in listTools handler, including name, description, and input schema.{ 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 (handler)Switch case dispatcher that routes 'get_execution' calls to the handler method.case 'get_execution': return await this.handleGetExecution(request.params.arguments as { id: string });