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),
                    }],
                };
            }
        );
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly describes the destructive action ('overwrites the live pipeline config', 'deletes the draft snapshot') and safety mechanism ('A pre-promote snapshot is saved automatically'). This covers key behavioral traits like mutation effects and rollback capability, though it doesn't address permissions or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured in two sentences: the first states the core action and immediate effects, the second explains the safety mechanism. Every sentence adds critical information with zero wasted words, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description does well by explaining the destructive behavior and automatic backup. However, it doesn't mention potential error conditions, response format, or prerequisites (e.g., requiring a draft to exist). Given the complexity, it's mostly complete but has minor gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents the 'workflowId' parameter. The description does not add any parameter-specific information beyond what the schema provides, such as format examples or constraints. The baseline score of 3 is appropriate when the schema handles parameter documentation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Promote the draft snapshot to live') and resource ('draft snapshot'), distinguishing it from siblings like 'discard_draft' (which deletes without promoting) and 'restore_snapshot' (which restores previous versions). It precisely defines the operation's scope and outcome.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a draft is ready to become live, but does not explicitly state when to use this tool versus alternatives like 'discard_draft' or 'restore_snapshot'. It mentions the automatic pre-promote snapshot for restoration, which provides some contextual guidance but lacks explicit when/when-not directives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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