Skip to main content
Glama

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

Implementation Reference

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

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