Skip to main content
Glama

Switch live version

publish_version
Destructive

Make an approved version that is waiting to publish live, or roll back to an earlier approved version. Existing versions and comments remain. Call only after the user explicitly approves publishing or rolling back. Approved uploads without hold may already have become live. quiet=true makes this switch notify no one (workspace people or subscribers) — use it for routine refreshes, not for the version people need to know about; releasing a held version keeps the quiet choice made at upload unless you pass it. Keywords: publish · web page · webpage · link · share · share to WeChat · WeChat link · html · pdf · markdown · upload · LivePage · proposal.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "publish_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoRestore to update n (author bar history / ?v= in the address); omit to publish the change readers have not seen
tagNoOptional: the tag this version gets when it goes live (a string = the tag name, such as 2026-10-28 / v2 final; or {name, title, note}). On a tagged page readers see the newest tagged version and can browse every tagged one (past issues); an existing tag name moves to this version. Daily reports use the day's date. Omitted: a page that has never been tagged behaves exactly as today; on a tagged page this version takes over the tag readers are looking at
noteNoWhat changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up.
quietNotrue = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for routine updates such as typo fixes or scheduled automatic refreshes; do not pass it on the version people need to know about (something changed)
version_idNoAdvanced: name a version id directly; normally pass only proposal_id
proposal_idNoThe page; required when version_id is not given

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / quiet / description
      Previous value: -"true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for small edits such as typo fixes"New value: +"true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for routine updates such as typo fixes or scheduled automatic refreshes; do not pass it on the version people need to know about (something changed)"
  2. Changed4 schema fields changed
    • addedInput schema / properties / n
      Added value: +{
      +  "description": "Restore to update n (author bar history / ?v= in the address); omit to publish the change readers have not seen",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / proposal_id
      Added value: +{
      +  "description": "The page; required when version_id is not given",
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / version_id / description
      Added value: +"Advanced: name a version id directly; normally pass only proposal_id"
    • removedInput schema / required
      Removed value: -[
      -  "version_id"
      -]
  3. Changed1 schema field changed
    • addedInput schema / properties / tag
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 40,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "properties": {
      +        "name": {
      +          "maxLength": 40,
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "note": {
      +          "maxLength": 2000,
      +          "type": "string"
      +        },
      +        "title": {
      +          "maxLength": 200,
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "description": "Optional: the tag this version gets when it goes live (a string = the tag name, such as 2026-10-28 / v2 final; or {name, title, note}). On a tagged page readers see the newest tagged version and can browse every tagged one (past issues); an existing tag name moves to this version. Daily reports use the day's date. Omitted: a page that has never been tagged behaves exactly as today; on a tagged page this version takes over the tag readers are looking at"
      +}
  4. Changed2 schema fields changed
    • addedInput schema / properties / note / description
      Added value: +"What changed this time: one line for subscribers and teammates, 20 characters or fewer, for example “Revised pricing after client feedback”. It appears in the update reminder; without it the reminder only says the version number, and the platform will not make one up."
    • addedInput schema / properties / quiet
      Added value: +{
      +  "description": "true = no notification this time: when this version goes live, neither workspace people nor readers subscribed to this page are notified; subscribers are notified as usual on the next update. Use it for small edits such as typo fixes",
      +  "type": "boolean"
      +}
  5. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that existing versions and comments are preserved (counterbalancing destructiveHint=true), that a held version retains its upload-time quiet choice unless overridden, and that notification suppression affects both workspace members and subscribers. This is exactly the mutation-risk and side-effect context an agent needs before acting.

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?

Purpose and the approval prerequisite are front-loaded, and each sentence in the prose carries operational weight. The trailing 'Keywords:' list is retrieval padding that adds little for an agent already reading the description, keeping this from a 5.

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 6-parameter, non-idempotent mutation with no output schema, the description covers prerequisites, side effects, notification behavior, and version/tag outcomes. It stops short of stating required permissions or how failures/conflicts surface, which would fully close the loop.

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 already 100%, so the baseline is 3; the description nevertheless adds real meaning, notably the quiet inheritance rule for held versions and the guidance on when tag/note matter (untagged pages behave as before). The n/version_id 'advanced' framing is also clarified.

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 action — promoting an approved/waiting version to live, or rolling back to an earlier approved version — so the agent can distinguish it from preview_version, read_version, and tag_version without opening schemas. The scope ('approved version', 'existing versions and comments remain') is concrete and unambiguous.

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

Usage Guidelines4/5

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

Gives a strong gating condition ('Call only after the user explicitly approves publishing or rolling back'), plus a caveat that unheld approved uploads may already be live and an explicit when-to/when-not rule for quiet=true. It does not name a sibling alternative for any of these choices, which keeps it below a 5.

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