Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • 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) }] }; }
  • 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 });
  • 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; }

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