Skip to main content
Glama

Create a preview site

create_preview

Creates a temporary preview site from pages already converted to markdown, and returns its link and its draft_id. The preview belongs to no one until somebody keeps it, and expires if nobody does. The result says what to check, page by page, before the link is shared. It is the tool for content that has no site yet. A preview's pages are then changed with apply_edit and its draft_id; claim_draft keeps it, and publish keeps and publishes it in one call. A kept site is changed with propose_edit and apply_edit. It takes one entry per page; a record of where the content came from, exactly as it happened: a code repository, a documentation site, a product landing page, writing supplied in this conversation, a file attached to it, or nothing, when it was drafted from what the person described, with the address when there is one; the product's name; and, when the source shows one, the address of its logo. It reads no source itself: a call with no pages is answered with what to send instead. A source past the preview's page or size limit is refused, and the answer gives the limits. Which pages come over from a source with many pages is the person's choice, made after they see what was found and before it is converted: everything, one part, or a new structure. When they have already named the pages, that choice is made. Pages arrive finished, with no notes, placeholders, open questions or marks. A page with a note to its author, such as [GAP], [?] or TODO, is refused. Where the source is silent, a page carries the best answer and what was assumed is said in the conversation. On a legal page, the business's legal name, its address, the country whose law applies and who else handles its customers' data come only from the person or their source; a page missing one of them still reads complete without it, and what was assumed is said in the conversation. The page list is short: every page should be one a reader would open on its own; contact details and short notes belong inside another page. Every page, title and heading is in the site's language, passed as languages, like ["de"]. A translated copy is every page again, translated, at the same address under // (/es/guides/setup), with its code listed after the site's own.

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

Input Schema

NameRequiredDescriptionDefault
pagesNoThe pages, already converted to markdown. One entry per page.
sourceYesWhere this content came from, exactly as it happened.
logo_urlNoA direct https address of the product's logo as the source shows it in its header — the mark, not a banner or a picture made for social media. Leave it out if the source has none.
languagesNoThe site's language as a code, like en, ru or pt-BR — the language every page, title and heading is written in.
site_nameNoThe name of the product or company the site is about, as the source writes it. It is shown at the top of every page.
attributionNoThe code a starter prompt gives to pass here, when the conversation began from one. Leave it out otherwise.
logo_shows_nameNotrue when the logo image itself spells the name, so the name is not printed again beside it. Leave it out otherwise.

Output Schema

NameRequiredDescriptionDefault
capsNo
createdNo
summaryNo
draft_idNo
next_stepsNo
preview_urlNo
short_pagesNo
no_front_pageNo
page_problemsNo
pages_createdNo
rights_noticeNo
before_sharingNo
fetched_sourceNo
bytes_submittedNo
notes_to_authorNo
pages_submittedNo
expires_in_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / attribution / description
      Previous value: -"Where this arrival came from."New value: +"The code a starter prompt gives to pass here, when the conversation began from one. Leave it out otherwise."
    • changedInput schema / properties / source / properties / ref / description
      Previous value: -"The address it came from, when there is one."New value: +"The address it came from, like https://github.com/acme/docs, when there is one."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare non-readonly, non-destructive, non-idempotent, closed-world; the description adds real behavior — the preview is unowned until claimed and expires, size/page limits are refused with limits in the answer, and pages containing notes like [GAP], [?] or TODO are rejected. It does not state the actual expiry window or numeric limits, a minor operational gap given how consequential expiry is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the key alternative are front-loaded, and each paragraph addresses a genuine failure mode. However the middle paragraphs are dense and some sentences are hard to parse on first read (the source-kind list appended to 'It takes one entry per page'), and the legal-page paragraph is long relative to its narrow applicability.

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?

For a 7-parameter tool with nested objects, an output schema already present, and the description deliberately covering provenance, placeholder rejection, page-count guidance, language/translation rules and error behavior, coverage is strong. Missing: no mention of attribution, logo_shows_name or logo_url handling, and no disclosure of the expiry horizon, all of which an agent may need before calling.

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 100%, so 3 is the baseline, but the description contributes meaning beyond the schema: it explains the provenance semantics of source ('exactly as it happened', including the 'nothing' case with an address when one exists), constrains what pages may contain (finished content, no placeholders, short page list), and ties languages to every page, title and heading with the /<code>/ translation rule. It never mentions attribution or logo_shows_name, leaving those entirely to the schema.

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?

First sentence gives a specific verb and resource ('Creates a temporary preview site from pages already converted to markdown') plus what it returns (link and draft_id). It explicitly distinguishes the preview workflow from the kept-site workflow ('A kept site is changed with propose_edit and apply_edit'), so an agent can separate it from apply_edit, claim_draft and publish without opening schemas.

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?

States the selecting condition outright: 'It is the tool for content that has no site yet.' It then routes the agent to the correct follow-ups by name (apply_edit with draft_id, claim_draft, publish) and to the different path for kept sites (propose_edit). Failure routing is also covered: a call with no pages 'is answered with what to send instead.'

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.