Skip to main content
Glama

get_workflow

Retrieve complete workflow details including steps, context, metadata, and configuration. Shows draft status and summary when available for live workflows.

Instructions

Get full details of a workflow including all steps, context, metadata, and configuration. Also returns hasDraftSnapshot (boolean) and draftSnapshot summary if a draft exists for a live workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID

Implementation Reference

  • The 'get_workflow' MCP tool handler. It extracts the workflowId from the input and calls the client's getWorkflow method to retrieve and return the workflow details.
        server.tool(
            'get_workflow',
            `Get full details of a workflow including all steps, context, metadata, and configuration.
    Also returns hasDraftSnapshot (boolean) and draftSnapshot summary if a draft exists for a live workflow.`,
            {
                workflowId: z.string().describe('The workflow ID'),
            },
            async ({ workflowId }, extra) => {
                const client = clientFactory(extra);
                const result = await client.getWorkflow(workflowId);
                return {
                    content: [{
                        type: 'text' as const,
                        text: JSON.stringify(result, null, 2),
                    }],
                };
            }
  • The underlying HTTP request implementation for 'getWorkflow', which fetches workflow details from the /api/external/workflows/:id endpoint.
    async getWorkflow(id: string) {
        return this.request(`/workflows/${id}`);
    }

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