Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AttachPage.

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.

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": {
      "files": "<files>"
    },
    "name": "publish_page"
  }
}

Input 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.
projectNoOptional project to file the page under, by name or id from list_projects, e.g. "Q4 proposal". A new name starts that project. An empty string takes the page out of its project.
siteNameNoName shown to the user and recipients, e.g. "Q3 report".
visibilityNoprivate (invitation-only, default) or public (anyone with the link).
descriptionNoOptional one-line description shown in the user's pages list. An empty string clears it.
preserveFilesNoRetain files not included in this edit. Requires siteId and baseDeploymentId.
baseDeploymentIdNoExpected current version. A changed page is refused rather than overwritten.

Output 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. Changed2 schema fields changed
    • addedInput schema / properties / description
      Added value: +{
      +  "description": "Optional one-line description shown in the user's pages list. An empty string clears it.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Optional project to file the page under, by name or id from list_projects, e.g. \"Q4 proposal\". A new name starts that project. An empty string takes the page out of its project.",
      +  "maxLength": 80,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructive and open-world behavior, but the description goes further: siteId replaces the page at the same address, preserveFiles retains omitted assets and needs baseDeploymentId, and stale edits are refused rather than overwritten. Auth requirement and visibility defaults are also stated. It stops short of saying what happens to existing links/versions on replacement.

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?

Four tight sentences, front-loaded with the action, then constraints, then auth. Slight redundancy with schema-documented visibility and preserveFiles semantics, but no filler.

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 publish tool with an output schema and fully described parameters, the description supplies the missing operational context: auth requirement, concurrency protection, replacement semantics, and file-retention behavior. Nothing essential to a correct call is absent.

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 description coverage is 100%, so the schema already explains slug, files, project, visibility, preserveFiles and baseDeploymentId. The description restates the same semantics (siteId replacement, preserveFiles dependency) without adding format or edge-case detail beyond the schema. Baseline 3 is appropriate.

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?

Names a specific verb and resource ('Publish a web page') and scopes it with 'as the connected user', which implicitly distinguishes it from publish_anonymous_page. An agent can tell what the call produces without opening the schema.

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?

The phrase 'as the connected user' and 'Requires an authenticated AttachPage connection' give a precondition and a contrast to anonymous publishing. However, no sibling is named and there is no explicit when-not or 'use X instead' guidance for cases like re-editing an existing page (update_page) or publishing from a URL.

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