Skip to main content
Glama

Make a page draft the live page

promote_page_draft

Make a draft the page: its layout and text replace the live page's, in place — the address, name, SEO, menu entry and links do not change. Call this ONLY once the user has approved the draft. By default (keep_previous: true) the version it replaces is kept as a draft called "Previous version", so putting it back is one more promote; the swap is also one entry in the page's version history, undoable with restore_version (file_slug = the page). Like every edit this changes the site's design, not what visitors see: publish_site ships it. warnings lists images the new version dropped or links that match no page — tell the user.

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site the draft belongs to
page_slugNoThe live page the draft belongs to. Optional — worked out from the draft when omitted.
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
draft_slugYesThe draft's slug, from create_page_draft or list_page_drafts (e.g. "/about--draft-7f2a").
variation_idNoDesign the draft belongs to, from list_variations. Defaults to the active design.
keep_previousNoKeep the page it replaces as a draft named "Previous version", so putting it back is one call. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "Optional: the user's goal behind this call, in one short sentence of plain words (e.g. \"add a page so customers can book tables\"). No names, emails or other personal details.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description goes well beyond by disclosing exactly what is overwritten versus preserved, that keep_previous=true stashes the old version as a draft named 'Previous version', that the swap is a single undoable version-history entry, and that a `warnings` list of dropped images / broken links is returned. The reversibility detail is what makes destructiveHint=false credible.

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

Conciseness4/5

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

Front-loads the core swap and its invariants before preconditions and undo mechanics, and every clause carries information. It is dense but long — the restore_version `file_slug` aside is a slight detour that could be trimmed without loss.

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

Completeness5/5

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

With no output schema, the description still tells the agent what comes back (`warnings` and what to do with it) and that the change is not live until publish_site. For a 6-parameter, non-idempotent mutation this covers everything needed to call it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns a step up by framing keep_previous as a workflow decision ('putting it back is one more promote') rather than restating the schema, and by noting the page is 'the page' the draft belongs to (page_slug is derivable). It stops short of adding new syntax or format detail beyond the schema.

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?

States a specific verb and resource ('Make a draft the page') and immediately disambiguates against its siblings: it replaces layout and text in place, while address, name, SEO, menu entry and links stay. An agent can tell this apart from create_page_draft, rename_page_draft, update_page_seo and restore_version without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('Call this ONLY once the user has approved the draft') plus named alternatives with their conditions: restore_version to undo, publish_site to ship it to visitors. When-to-use, when-to-undo and the downstream step are all spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources