Skip to main content
Glama

promote_draft

Activate draft pipeline configurations by promoting them to live status, replacing current settings while preserving a restore point for previous configurations.

Instructions

Promote the draft snapshot to live. This overwrites the live pipeline config with the draft contents, then deletes the draft snapshot. A pre-promote snapshot is saved automatically so the previous live config can be restored if needed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowIdYesThe workflow ID

Implementation Reference

  • The `promote_draft` tool is registered here. It accepts a `workflowId` and invokes `client.promoteDraft(workflowId)` to perform the promotion.
        server.tool(
            'promote_draft',
            `Promote the draft snapshot to live. This overwrites the live pipeline config with
    the draft contents, then deletes the draft snapshot. A pre-promote snapshot is saved
    automatically so the previous live config can be restored if needed.`,
            {
                workflowId: z.string().describe('The workflow ID'),
            },
            async ({ workflowId }, extra) => {
                const client = clientFactory(extra);
                const result = await client.promoteDraft(workflowId);
                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