Skip to main content
Glama

Publish site

publish_site
Destructive

Publish a site to make changes live. Requires the siteId from list_sites. Builds, packages, uploads, and deploys. Before publishing, call skills with name "publishing-sites".

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
siteIdYesThe ID of the site to publish. Get this from list_sites. The tool finds the site's folder on disk itself, so there is nothing else to look up.
promoteRoutesNoRoutes whose unpublished edits go live in this publish — pages and content entries alike, e.g. ["/", "/about", "/blog/my-post"] (a content entry's route is /<collection>/<slug>). Omit to publish every page and entry with changes. Pass [] to publish only site-wide changes and leave every page and entry draft as it is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / siteId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is carried structurally. The description adds real context beyond that: the multi-stage build/package/upload/deploy pipeline and the mandatory skills preflight, both of which shape how an agent should sequence the call. It does not mention reversibility, rollback, or partial-failure behavior, so it is not a 5.

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

Conciseness5/5

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

Three short sentences, each earning its place: purpose first, then the required identifier source, then the preflight requirement. No redundancy or filler.

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 destructive, non-idempotent action with no output schema, the description covers purpose, prerequisites, and delegates parameters to a fully documented schema. It leaves out what a successful publish returns (e.g., a live URL) and what happens to the previously published version, which would fully close the gap.

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

Parameters3/5

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

Schema coverage is 100% and the promoteRoutes description already spells out omission vs. empty-array semantics in detail, so the schema does the heavy lifting. The description only restates that siteId comes from list_sites, adding no meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ("Publish a site to make changes live") and adds the concrete pipeline it performs: builds, packages, uploads, deploys. It does not differentiate from adjacent publish-like siblings such as create_shared_preview, so it stops short of a 5.

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 two concrete preconditions: obtain siteId from list_sites, and call skills with name "publishing-sites" before publishing. There is no explicit when-not-to-use guidance (e.g., use a preview instead of publishing live), 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