Skip to main content
Glama

Create preview link

create_preview

Generate a shareable preview URL for a landing page before going live.

Use this after save_page_content so the user can review the page via a token-protected preview URL before publishing. The live production version is NOT affected.
If the page has an assigned primary custom URL such as https://www.example.com/lp2, the preview response uses that URL path and may also include a managed fallback URL.
If the user is happy with the preview, call publish_site to make it live.
Uses the latest saved version if versionNumber is omitted.
The returned URL includes a secure access token and works for 60 minutes. Call create_preview again for a fresh link; to show the page to other people, publish it.

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

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe ID of the page to preview
versionNumberNoVersion number to preview. If omitted, the latest saved version is used.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to preview"New value: +"The ID of the page to preview"
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses that production is untouched, that the URL is token-protected and expires in 60 minutes, and that a repeat call yields a fresh link — effectively explaining the non-idempotent side effect the annotations only flag. It does not explain any permission or quota implications of minting tokens, which keeps it short of a 5.

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 primary action and the review-before-publish workflow are front-loaded, and every later sentence carries a distinct fact (URL path behavior, expiry, regeneration, escalation to publish). Minor redundancy with the schema's versionNumber phrasing and the slightly crowded custom-URL sentence keep it from a 5.

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?

No output schema exists, and the description still covers what comes back (token-bearing URL, possible managed fallback, 60-minute lifetime) as well as the state-management rule for re-issuing links. For a two-parameter, non-destructive creation tool, an agent has everything needed to call and interpret it correctly.

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 coverage is 100% and both parameters are already documented there. The description's only parameter-related statement, "Uses the latest saved version if versionNumber is omitted," restates the schema text rather than adding format, validation, or edge-case meaning, so the baseline 3 applies.

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?

The opening sentence names a specific verb and resource ("Generate a shareable preview URL for a landing page") plus the scoping qualifier "before going live." It also implicitly separates itself from publish_site by naming that sibling later, so an agent can pick between previewing and publishing without opening a 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?

Explicit sequencing is given: use after save_page_content, then call publish_site if the user is happy, and publish if the page must be shown to other people. This covers when to use it, what precedes it, and what supersedes it, leaving little 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.