Skip to main content
Glama

Publish page

publish_page
Destructive

Publish a web page as the connected user. A siteId replaces an existing page at the same address. preserveFiles retains omitted assets and requires the baseDeploymentId of that version; stale edits are refused. Visibility is private (invitation-only, default) or public. Requires an authenticated AttachPage connection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoOptional address label, 3-40 lowercase letters, digits or hyphens. Random when omitted.
filesYesFiles of the page. The complete resulting page includes index.html at the top level.
siteIdNoReplace this existing page at the same address.
siteNameNoName shown to the user and recipients, e.g. "Q3 report".
visibilityNoprivate (invitation-only, default) or public (anyone with the link).
preserveFilesNoRetain files not included in this edit. Requires siteId and baseDeploymentId.
baseDeploymentIdNoExpected current version. A changed page is refused rather than overwritten.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPage address.
slugNoAddress label.
siteIdNoPage id; pass it to replace the page later.
fileCountNoFiles published.
visibilityNoprivate or public.
deploymentIdNoId of this version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The annotations declare a destructive write, and the description goes well beyond them: it explains what gets destroyed (an existing page at the same address is replaced), the optimistic-concurrency behavior (stale edits are refused, changed page refused rather than overwritten), the preserveFiles retention semantics, the default visibility, and the auth requirement. This is exactly the kind of side-effect context an agent needs before a destructive call.

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?

Five tight sentences, purpose front-loaded, each covering a distinct concern (identity, replace semantics, concurrency, visibility, auth) with no filler. Slight overlap with schema-described fields keeps it from being maximally economical.

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, open-world publishing tool, the description covers safety (destructive replacement), auth prerequisites, concurrency guardrails, visibility defaults, and asset retention. With an output schema present, return values need no explanation, so nothing material 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 description coverage is 100%, so the baseline is 3, but the description adds causal semantics the schema does not: siteId's replace-at-same-address effect, the coupling of preserveFiles to baseDeploymentId, and the refusal-on-stale-edit behavior. It does not add file/encoding details, which is acceptable since the schema covers them.

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?

The description gives a specific verb+resource ("Publish a web page") and adds the qualifier "as the connected user," which implicitly distinguishes it from the sibling publish_anonymous_page. It stops short of explicitly naming that sibling or contrasting with update_page/publish_document, so differentiation is inferable rather than stated.

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

Usage Guidelines3/5

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

It states the prerequisites (authenticated AttachPage connection) and the conditions attached to specific parameters (siteId replaces, preserveFiles requires baseDeploymentId), which implies the update-in-place use case. However, it never says when to choose this tool over publish_anonymous_page, update_page, or publish_document, so routing guidance is left to inference.

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