Skip to main content
Glama

Preview page

preview_page
Read-onlyIdempotent

A picture (PNG) of a page's latest DRAFT exactly as publishing would serve it, header, footer and menus included. Nothing is published or changed. width: "desktop" (1280 px, the default) or "phone" (390 px). focus: a node id, outlined — the page's, or one of the site header or footer it wears. region: "focus" (the default with a focus: that node and the page around it, full size), "top" (the default without: the first screen) or "all" (the whole page, cut at 6000 px). A design shows on: the first active product of its kind (product-template: goods; product-template-download: downloads; product-template-access: classes & content — else a marked sample of the kind), the newest live post (post-template), the home page (site-header, site-footer). cart-template: the cart OPEN over the home page with two lines (the shop’s products, else marked samples; shows says which). Other sites' content is not loaded (a map, embed or video: a still). asPublished: true leaves held pages out.

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

Input Schema

NameRequiredDescriptionDefault
focusNoA node id to outline in the picture
widthNo
pageIdYesPage id (from get_site), or a template id: product-template, product-template-download, product-template-access, cart-template, post-template, site-header, site-footer
regionNo
siteIdYesSite id (from list_sites)
asPublishedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotent/destructive annotations, the description discloses real behavioral traits: nothing is published or changed, other sites' content is not loaded so maps, embeds and video become stills, and output is cut at 6000 px. It also explains that asPublished=true leaves held pages out, which is non-obvious behavior.

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?

The description is front-loaded with purpose and packs a great deal of parameter behavior into few words, so almost every clause earns its place. The telegraphic fragment style, with dense template-mapping sentences, makes it harder to parse than it needs to be, and 'Nothing is published or changed' partly restates the annotations.

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?

There is no output schema, so the description must carry the return format, and it does ('A picture (PNG)'), including the 6000 px truncation and the substitution of stills for third-party content. With template-id behavior and defaults all covered, an agent has everything needed to call it correctly.

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

Parameters5/5

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

Schema coverage is only 50%, but the description compensates fully, explaining width presets (1280 px desktop default, 390 px phone), what focus outlines and which nodes it can reference, the three region modes with their defaults and dependencies on focus, and the effect of asPublished. This is meaning well beyond the sparse schema descriptions.

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 opens with a specific verb and resource, 'A picture (PNG) of a page's latest DRAFT exactly as publishing would serve it', which makes it clear that this produces a rendered image rather than page data. However, it never names or contrasts with a sibling such as get_page, so the distinction from fetching page content is left implicit.

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?

The description provides a clear context for when this is used (checking a draft as it would render publicly, including header, footer and menus) and gives detailed conditional guidance for choosing region and template ids. It does not, however, state when NOT to use it or name any alternative tool.

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