Skip to main content
Glama

Publish

publish
Destructive

Publishes a kept site: its latest kept version goes out to readers at the site's address and replaces what they saw. It answers at once, the publish starts in about a minute and readers see it shortly after, and site_status shows the progress. Only kept versions go out, so changes from propose_edit need apply_edit first, and the site needs a front page at /. Publishing needs a paid plan with room for the site; without one nothing goes out and the answer says so. When the site has already published as often as its plan allows that day or month, the version waits and goes out on its own later. A writer on the site cannot publish; an editor or admin can. A site whose content was brought from somewhere else needs, once, the person's confirmation that it is theirs to publish (rights_confirmed). Given the draft_id of a preview nobody has kept yet, it first keeps the preview exactly as claim_draft does, under the name given as subdomain, and then publishes it; if it cannot publish, the preview stays kept and the answer says why. To keep a preview without publishing it, claim_draft is the tool, and it needs no paid plan. rollback goes back to an earlier version.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoWhich site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview.
draft_idNoWhich preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names.
subdomainNoOnly with the draft_id of a preview nobody has kept yet: the name for its web address, like acme for acme.documarium.com. 3 to 63 lower-case letters, digits and hyphens, not starting or ending with a hyphen; some names are reserved. Left out, or taken, the answer offers names that are free and nothing is kept or published.
rights_confirmedNoSay true only after the person has confirmed, in this conversation, that the content is theirs or they have permission to publish it. Needed once, for a site whose content was brought from somewhere else.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / draft_id / description
      Previous value: -"Which preview this is about: the draft_id create_preview returned, not the code in the preview's link. Leave it out for a kept site, which site names."New value: +"Which preview: the draft_id create_preview returned, a 43-character key of letters, digits, - and _ (stray quotes or punctuation around it are ignored). It is not the code in the preview's link. Leave it out for a kept site, which site names."
    • changedInput schema / properties / site / description
      Previous value: -"Which site: its name, its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted here. Leave it out when this connection covers only one site. A preview is not one of these sites; draft_id names a preview."New value: +"Which site: its name (like Acme Docs), its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted. Leave it out when this connection covers one site; when it covers several and site is left out, nothing is done and the answer names them. A preview is not one of these sites; draft_id names a preview."
    • changedInput schema / properties / subdomain / description
      Previous value: -"Only with the draft_id of a preview nobody has kept yet: the name for its web address, like acme, in lowercase letters, digits and hyphens. Leave it out to be offered some that are free."New value: +"Only with the draft_id of a preview nobody has kept yet: the name for its web address, like acme for acme.documarium.com. 3 to 63 lower-case letters, digits and hyphens, not starting or ending with a hyphen; some names are reserved. Left out, or taken, the answer offers names that are free and nothing is kept or published."
  2. Changed3 schema fields changed
    • changedInput schema / properties / draft_id / description
      Previous value: -"Which preview this is about: the draft_id create_preview gave, not the code in the preview's link. Leave it out for a site you keep."New value: +"Which preview this is about: the draft_id create_preview returned, not the code in the preview's link. Leave it out for a kept site, which site names."
    • changedInput schema / properties / site / description
      Previous value: -"Which site: its name or its address. Leave it out if this connection only covers one."New value: +"Which site: its name, its Documarium address (like acme.documarium.com) or the short name in that address (like acme); a custom domain is not accepted here. Leave it out when this connection covers only one site. A preview is not one of these sites; draft_id names a preview."
    • changedInput schema / properties / subdomain / description
      Previous value: -"When keeping a preview: the name for its web address, like acme."New value: +"Only with the draft_id of a preview nobody has kept yet: the name for its web address, like acme, in lowercase letters, digits and hyphens. Leave it out to be offered some that are free."
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations that already flag this as destructive and non-idempotent, the description discloses timing behavior, progress monitoring through site_status, paid-plan and rate-limit handling, permission roles, rights-confirmation requirements, and failure semantics for previews. It also explains the important side effect that a draft preview stays kept if publishing fails.

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?

The description is front-loaded with the core action, and nearly every sentence adds operational value. It is dense and somewhat run-on, but the length is justified by the tool's complexity and the absence of an output schema.

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?

For a destructive publishing mutation with several business rules and no output schema, the description is unusually complete. It covers prerequisites, side effects, failure modes, monitoring, permissions, and alternatives, leaving little an agent would need to infer before calling it.

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 description coverage is 100%, so the schema already carries substantial parameter detail. The description still adds meaningful semantics beyond the individual schema fields, especially the conditional relationship between draft_id and subdomain and the once-only nature of rights_confirmed.

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 states a specific verb and resource: it publishes a kept site, sending its latest kept version to readers and replacing what they saw. It also clearly distinguishes this action from claim_draft (which keeps a preview without publishing) and rollback (which returns to an earlier version).

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 when-to-use guidance and alternatives: use claim_draft to keep a preview without publishing, apply_edit before publishing proposed changes, and rollback to go back to an earlier version. It also states exclusions and prerequisites, including paid plan requirements, role restrictions, front-page requirements, and rights confirmation.

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.