Skip to main content
Glama

Create shared preview

create_shared_preview
Idempotent

Create or recover a public live preview link to a site page without publishing. Anyone with the URL can view the draft from your account's existing preview workspace. Use projectId from list_projects and siteId from list_sites; supply the page route and omit locale for the default. Page availability is checked when the link opens. Share only when requested; if the preview workspace is missing, report that state without editing or publishing the site.

Input Schema

NameRequiredDescriptionDefault
routeYesThe site route to preview, e.g. "/" or "/about". Must be an absolute path without a query string or fragment.
localeNoBCP 47 language tag to render the page in, e.g. "en-US". Omit to use the site's default locale.
siteIdYes
projectIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / siteId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. 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"
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond the annotations: the link is publicly viewable by anyone with the URL, it uses the account's existing preview workspace, availability is resolved lazily when the link opens, and no publishing/editing occurs. Gaps remain on what the call actually returns (the link? an existing link on 'recover'?) and whether access can be revoked later.

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?

Four dense sentences, front-loaded with the core action and followed by ID sourcing, locale default, and safety guardrails. Every sentence carries usable information; only the 'page availability is checked when the link opens' sentence is slightly tangential to invocation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 implies but never states what is returned (the preview URL or an existing one on 'recover'). Otherwise it covers prerequisites, public-visibility implications, idempotent recovery, and the no-publish guardrail well enough to call 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 50% (route and locale documented; siteId and projectId undocumented). The description usefully compensates by naming list_projects and list_sites as the source of the two bare UUIDs, and reinforces the locale-omission default, but adds no format or constraint detail for those IDs.

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+resource+scope: 'Create or recover a public live preview link to a site page without publishing.' The 'without publishing' clause cleanly separates it from publish_site and revoke_shared_preview in the sibling list.

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?

Gives concrete routing guidance ('Use projectId from list_projects and siteId from list_sites') and a conditional trigger ('Share only when requested'). It also names a non-usage branch (missing preview workspace -> report, don't edit/publish), but never explicitly names publish_site as the alternative when actual publishing is wanted.

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