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.

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 / properties / siteId / description
      Previous value: -"The ID of the site to preview"New value: +"The ID of the page to preview"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: the preview is token-protected, the URL works for 60 minutes, the live production version is not affected, and custom primary URLs may be used with a managed fallback. These details are exactly what an agent needs to set expectations and avoid mistaking preview for publication.

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?

The description is front-loaded with the core action and then layers in timing, safety, URL behavior, and next steps without wasted text. Each sentence contributes useful operational context.

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?

With no output schema, the description carries the return-value context itself by explaining the tokenized URL, 60-minute lifetime, custom URL path behavior, and fallback URL. Combined with the annotations, it gives an agent enough information to call the tool correctly and interpret the result.

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 parameters are already documented in the schema. The description repeats that omitting versionNumber uses the latest saved version, but it does not add syntax or format details beyond the schema, so the baseline of 3 is appropriate.

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 states a specific verb and resource: generate a shareable preview URL for a landing page before going live. It clearly distinguishes the preview from the live production version and from publish_site, but it does not mention the sibling create_landing_page_preview, so sibling differentiation is incomplete.

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?

It explicitly says to use this after save_page_content so the user can review before publishing, and it names publish_site as the next step when the user is happy. It also explains that calling create_preview again produces a fresh link and that publishing is required to show the page to other people.

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.