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. Use it to show the user a page Site Builder just finished before asking whether to publish, or when asked to share one; if the preview workspace is missing, report that state without editing or publishing the site. For multi-step Replo work, call skills with name "replo".

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": {
      "projectId": "<projectId>",
      "siteId": "<siteId>",
      "route": "<route>"
    },
    "name": "create_shared_preview"
  }
}

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.3/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that the link is public and unauthenticated ('Anyone with the URL can view the draft'), that availability is validated lazily ('Page availability is checked when the link opens'), and that a missing preview workspace is a terminal state to report rather than retry. It does not cover what happens to previously issued links or how to revoke them, though a revoke sibling exists.

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?

Dense but front-loaded: the core action and scope come first, then parameter sourcing, then usage triggers, then the Replo escalation. Every sentence carries information, though the final Replo/skills sentence is only loosely coupled to this tool.

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 still leaves the returned URL implicit rather than stating that the response contains the shareable link. Everything else an agent needs — parameter provenance, defaults, public-visibility caveat, and the missing-workspace branch — is present.

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 50% — projectId and siteId are bare UUIDs in the schema — and the description compensates by naming where each comes from (list_projects, list_sites). It also tells the agent to omit locale for the default, adding decision guidance the schema does not. Route constraints are already in the schema, so no credit needed there.

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 — 'Create or recover a public live preview link to a site page' — and immediately bounds the scope with 'without publishing'. The 'create or recover' phrasing also signals idempotent-ish behavior toward an existing link, which distinguishes it from a publish action.

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 explicit triggers ('show the user a page Site Builder just finished before asking whether to publish, or when asked to share one') and a failure branch ('if the preview workspace is missing, report that state without editing or publishing'). It also points at sibling tools for parameter sourcing (list_projects, list_sites) and routes Replo work to skills. It lacks an explicit when-not-to-use versus publishing.

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