Skip to main content
Glama

Preview a page before publishing

preview_page
Read-onlyIdempotent

Shows the person how the page WOULD look with this document, right in the conversation, without publishing anything. Takes exactly what put_page takes and checks it the same way, so a draft that previews will publish. Use it when the person asks to see the page first, or when you want their opinion on a new page or a bigger change; change the draft and preview again as they give feedback. Publish with put_page, sending the same blocks, theme and version, once they say yes, or they can press Publish in the preview. When the person just wants the change made, put_page directly and skip the preview. Outside image URLs are shown from where they are and stored on Keepp only when the page is published.

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": {
      "business": "<business>",
      "version": "<version>",
      "blocks": "<blocks>"
    },
    "name": "preview_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
themeNoThe page-wide theme.
blocksYesThe complete ordered list of blocks the page would have, exactly as you would send it to put_page. The keepp://capabilities resource lists every block type and its fields.
versionYesThe version from the get_page you are editing. Publishing the preview sends it to put_page.
businessYesThe page handle, as it appears in keepp.link/<handle>. For example "janedoe".

Output Schema

NameRequiredDescriptionDefault
urlYesWhere visitors will find the page once it is published.
warningsYesWould publish anyway. Things only visible once rendered — worth fixing.
publishedYesAlways false: a preview is never published.
blockCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description adds much more: it validates input the same way put_page does so a previewing draft will publish, nothing is published by the preview, the user can publish from within the preview, and outside image URLs are shown in place but stored only at publish time. These are non-obvious side-effect and validation facts an agent could not infer from the annotations.

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 what the tool does, then usage, then the publish path and image caveat; nearly every clause carries operational information. It is on the long side for a definition and repeats the put_page/version linkage twice, which costs a point.

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?

Despite four parameters including a nested theme object and a block array, the description covers the full interaction loop, the handoff to put_page, the destructive-free nature of preview, and the deferred side effect for external images. An output schema exists, so return values need no explanation.

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 field-level meaning is already documented, but the description adds cross-tool semantics — it takes exactly what put_page takes, blocks are 'exactly as you would send it to put_page', and version is the one from get_page that publishing will forward. That is real added meaning beyond the schema text.

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 — shows the person how the page WOULD look with this document, in the conversation, without publishing — and immediately contrasts with publishing. The agent can distinguish it from put_page and get_page without inspecting either 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?

Gives explicit triggers (the person asks to see the page first, or you want their opinion on a new page or bigger change), an iteration loop (change the draft and preview again), the exit path (publish with put_page once they say yes, or they press Publish in the preview), and an explicit skip condition (when the person just wants the change made, use put_page directly).

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