Skip to main content
Glama

Publish site

publish_site
DestructiveIdempotent

Publishes the pages’ current drafts to the site’s address or domain; editing never publishes. The person’s yes first: a first call publishes nothing and answers what would go live, the question for the person and confirmToken (or their client asks them itself); on their own yes, the same call + confirmToken publishes. A large site publishes in the BACKGROUND: after 10 s it answers {status:"running", jobId, progress}; get_publish_status follows it. pageIds sends only the pages named; pages held for review are skipped. The answer has mode, cache.invalidated, warnings (placeholderPages, templateLeftovers, deadLinks, …; never a refusal) and outsideNote (outside sites newly linked). A changed Analytics id or verification waits for confirmation (searchSettingsChanged). Full reference: get_reference {topic:"publishing"}.

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": {
      "siteId": "<siteId>"
    },
    "name": "publish_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNotrue: publish every page whatever changed
jobIdNoNot accepted (get_publish_status asks after a job)
siteIdYesSite id (from list_sites)
pageIdsNoOnly these pages (ids from get_site); others keep what is live
confirmTokenNoFrom the question, on their yes
confirmSearchSettingsNoconfirmWith from searchSettingsChanged: it goes live
keepLiveSearchSettingsNokeepWith from it: live values stay

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare destructive/open-world/idempotent, but the description carries the load that annotations cannot: a mandatory two-step confirmation gate, a 10 s threshold after which a large publish returns {status:"running", jobId, progress} in the background, review-held pages being skipped, and the fact that search-setting changes wait for separate confirmation. It even discloses that warnings are 'never a refusal', which pre-empts a likely agent misread.

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-loaded with the action, then ordered by decision flow (preview → confirm → background → answer shape). Dense but every clause carries information; the compressed, idiosyncratic phrasing ('The person's yes first', 'on their own yes') and inline JSON fragments make it harder to parse than it needs to be.

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 7-parameter destructive tool with nested objects and no output schema, the description supplies the return shape itself (mode, cache.invalidated, warnings with example categories, outsideNote) as well as the async escape hatch via jobId. An agent has everything needed to run the confirm flow and interpret the response without another call.

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 baseline is 3; the description earns extra by explaining the semantics the schema only names — confirmToken comes 'from the question' on the person's yes, pageIds leaves non-listed pages on their live version, and confirmSearchSettings/keepLiveSearchSettings map to confirmWith/keepWith from searchSettingsChanged. 'full' and 'jobId' are left to the schema, so it doesn't fully cover all seven parameters.

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: publishing the pages' *current drafts* to the site's address/domain, and pre-empts the most likely confusion with 'editing never publishes'. It also scopes the operation variant (pageIds = named pages only) so an agent can distinguish it from unpublish_site and from the follow-up status tool 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 Guidelines4/5

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

Gives unusually concrete usage context: the first call is a dry-run preview that publishes nothing, and the same call plus confirmToken performs the publish on the person's yes — that protocol is essential and non-obvious. It also routes to get_publish_status for background jobs and get_reference {topic:"publishing"}, though it never states when *not* to use the tool or contrasts it with unpublish_site.

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