Skip to main content
Glama

Publish Landing Page

page_publish
DestructiveIdempotent

Publish the latest page revision. Call this only when the user's latest message explicitly asks to publish, make the page live, or get a public share link. Do not call this immediately after page_create or page_create_from_brief just because the draft is publish-ready. For anonymous demo pages, include the editToken returned by page_create. The response includes the public URL and nextSteps (the claim reminder for demo pages and any remaining optional improvements).

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": {
      "pageId": "<pageId>"
    },
    "name": "page_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe pageId returned by page_create.
editTokenNoRequired for anonymous demo pages. Use the editToken returned by page_create.

Output Schema

NameRequiredDescriptionDefault
okYes
slugYes
titleYes
pageIdYes
statusYes
actionsYes
contentNo
claimUrlYes
editTokenYes
expiresAtYes
isClaimedYes
nextStepsNoImprovement hints. Only 'required' items block publishing (they mirror the publish guard); 'recommended' and 'optional' are suggestions to offer after the user has seen the preview, never prerequisites.
canPublishYes
previewUrlYes
isPublishedYes
publishedUrlYes
missingFieldsNo
publishPolicyNoFor edit tools on already-published pages, this is wait_for_separate_user_request to prevent same-turn publishing.
liveUpdateMessageNoPlain-language instruction explaining that an edit to an already-published page is draft-only and must not be published until a later explicit user request.
liveUpdateRequiredNoTrue after an edit to an already-published page when the public live page still needs page_publish to reflect the latest revision.
publicUrlAfterPublishNoThe public address this page has once published (its slug is reserved). Same as publishedUrl after publishing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / publicUrlAfterPublish
      Added value: +{
      +  "description": "The public address this page has once published (its slug is reserved). Same as publishedUrl after publishing.",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedOutput schema / properties / nextSteps / description
      Previous value: -"Enrichment hints to present to the user. Address 'required' items before publishing."New value: +"Improvement hints. Only 'required' items block publishing (they mirror the publish guard); 'recommended' and 'optional' are suggestions to offer after the user has seen the preview, never prerequisites."
  3. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered. The description adds real context beyond that: the deliberate gating on explicit user intent, the anonymous-demo auth requirement, and the fact that the response carries the public URL and a claim reminder. It stops short of addressing reversibility or the page_unpublish path, which matters for a destructive-flagged mutation.

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?

Four sentences, none redundant, with the core action and the gating rule placed first so an agent gets the critical constraint before the conditional details. The return-value note is compact and placed last, where it belongs.

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?

An output schema exists, so return values need not be fully explained, and the brief mention of public URL and nextSteps is a helpful pointer rather than padding. For a two-parameter mutation with full annotation coverage, everything an agent needs to decide whether and how to call it is present.

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 both pageId and editToken are already documented in structured form, and the description largely restates the editToken precondition. It adds no format or edge-case detail beyond the schema. Baseline 3 applies when the schema carries the semantic load.

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?

"Publish the latest page revision" names a specific verb and resource, and the closing sentence describes the outcome (public URL plus nextSteps), which further pins down what this tool returns. It is clearly distinguishable from page_create, page_preview, and page_unpublish without inspecting any schema.

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?

The description states an explicit trigger (the user's latest message asks to publish, make live, or get a share link) and an explicit anti-trigger (do not call right after page_create or page_create_from_brief merely because the draft is publish-ready). It also gives a conditional precondition: anonymous demo pages need the editToken from page_create.

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