Skip to main content
Glama

get_execution

Retrieve detailed workflow execution results to inspect step outputs, debug failures, and analyze intermediate data from completed workflows.

Instructions

Get full execution details including results from each completed step. The executionContent field maps stepId -> step output data. Use this to inspect what a workflow produced, debug failures, or check intermediate results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID
executionIdYesThe execution ID

Implementation Reference

  • Registration and handler implementation for the 'get_execution' MCP tool.
        server.tool(
            'get_execution',
            `Get full execution details including results from each completed step.
    The executionContent field maps stepId -> step output data.
    Use this to inspect what a workflow produced, debug failures, or check intermediate results.`,
            {
                workflowId: z.string().describe('The workflow ID'),
                executionId: z.string().describe('The execution ID'),
            },
            async ({ workflowId, executionId }, extra) => {
                const client = clientFactory(extra);
                const result = await client.getExecution(workflowId, executionId);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
        );

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/Agentled/mcp-server'

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