Skip to main content
Glama

Put preview live or discard it

set_live_version

Act on the waiting preview. action "put_live" (the default) puts it live. It replaces the whole live website, so first confirm with the person, in words, that they have looked at the preview (get_preview_link) and want it live. Pass the version_id from the preview publish or from list_versions; only the version marked as the waiting preview is accepted, and a preview that was replaced since is refused. It is refused too if the live website changed after the preview was made (list_websites shows waiting_preview.stale: true): discard it, then send the same change again with update_site, changes, base "live" and preview true. action "discard" removes the waiting preview and leaves the live website as it is; version_id is not needed. To bring back an earlier version instead, use rollback_site. Editors only.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site_id": "<site_id>"
    },
    "name": "set_live_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNo"put_live" (default) puts the waiting preview live; "discard" removes it without changing the live website
site_idYesThe id of the website site
version_idNoWith "put_live": the waiting preview’s version_id
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the blast radius (the whole live website is replaced), the acceptance rule (only the version marked as the waiting preview is accepted), and two distinct refusal conditions with the signal to check (waiting_preview.stale: true in list_websites). Worth noting is a mild tension with destructiveHint=false, since replacing a live site is heavy, but the description frames it as an overwrite whose prior versions remain reachable via rollback_site, so it does not contradict the hint.

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?

Dense but front-loaded: the default action and its consequence come first, then the confirmation requirement, then the refusal/recovery branches. Some sentences pack multiple clauses (the stale/update_site recipe) and could be split for faster scanning, but no sentence is filler.

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?

There is no output schema, and for a guarded mutation the description covers what an agent needs: authorization scope ("Editors only"), preconditions, error modes, and where to look for recovery. Nothing required to call it correctly or to interpret a refusal is missing.

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 schema already carries the per-parameter text, yet the description still adds value: it states that only the waiting preview's version_id is accepted, where to obtain it (preview publish or list_versions), and that version_id is not needed for discard. It adds no detail about workspace_id or site_id beyond the schema, which is the only remaining gap.

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 opens with a specific verb+resource ("Act on the waiting preview") and then spells out both modes with their distinct outcomes: "put_live" replaces the whole live website, "discard" removes the preview and leaves the live website as it is. It also distinguishes itself from the nearest siblings by naming rollback_site (earlier versions) and update_site (re-sending a change), so an agent can separate it from them without opening any 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?

It gives explicit preconditions (confirm in words that the person has looked at the preview via get_preview_link and wants it live) and an explicit recovery path when refused due to staleness: discard, then re-send the change with update_site and the listed arguments. It also states when version_id is unnecessary (discard) and routes to rollback_site when the goal is restoring an earlier version rather than publishing the preview.

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.