Skip to main content
Glama

show_page_preview

Read-only

Show the user an interactive page preview that automatically follows saved changes. Call after completing page changes, or when asked to see a page. Pass the edited target including draftId. Optional inputs, state and dataFixtures use the same visual test overrides as screenshot_page. Fixture query states remain fixed during interactions. Does not edit or publish. Use screenshot_page separately for visual inspection.

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": {
      "target": "<target>"
    },
    "name": "show_page_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoOptional complete declared initial state overrides
inputsNoOptional complete top-level input overrides
targetYesTarget page to display; include draftId to preview the draft being edited.
scenarioIdNoOptional saved preview scenario ID from this page version. Select a scenario or provide ad hoc inputs/state/dataFixtures
dataFixturesNoOptional fixed query visual states

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / scenarioId
      Added value: +{
      +  "description": "Optional saved preview scenario ID from this page version. Select a scenario or provide ad hoc inputs/state/dataFixtures",
      +  "type": "string"
      +}
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed4 schema fields changed
    • addedInput schema / properties / dataFixtures
      Added value: +{
      +  "description": "Optional fixed query visual states",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "description": "Optional message for the error scenario.",
      +        "type": "string"
      +      },
      +      "hasMore": {
      +        "description": "Paginated queries only. Defaults to true for loadingMore and false otherwise. empty requires false.",
      +        "type": "boolean"
      +      },
      +      "params": {
      +        "description": "Optional complete query parameters to match after host normalization. Omit to match all parameters for this query. Exact matches take precedence.",
      +        "type": "object"
      +      },
      +      "query": {
      +        "description": "Query name from the page queries catalog.",
      +        "type": "string"
      +      },
      +      "scenario": {
      +        "description": "Fixed visual state. success refreshing and loadingMore use built-in sample records unless value is supplied. Other scenarios use the query initial value. Data actions do not change fixture states.",
      +        "enum": [
      +          "success",
      +          "empty",
      +          "idle",
      +          "loading",
      +          "error",
      +          "refreshing",
      +          "loadingMore"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "object"
      +          },
      +          {
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Optional complete query result matching its result schema. Pass JSON directly including explicit null. Omit for built-in data. Not allowed with empty."
      +      }
      +    },
      +    "required": [
      +      "query",
      +      "scenario"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / inputs
      Added value: +{
      +  "description": "Optional complete top-level input overrides",
      +  "type": "object"
      +}
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "Optional complete declared initial state overrides",
      +  "type": "object"
      +}
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish a read-only, non-destructive, non-open-world operation, so the bar is lower; the description still adds real behavior: the preview stays live against saved changes and fixture query states stay frozen during interaction. It does not say what the user sees on failure (e.g., missing draftId) or whether the preview persists, 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?

Five tight sentences, front-loaded with purpose and usage before the parameter notes. Nothing is redundant, though the fixture-related sentences are dense with jargon that a first-time caller may need to re-read.

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?

There is no output schema, but for a UI-surfacing tool the description adequately covers what is displayed and what is not changed. The gaps are minor: no mention of failure modes for invalid target/draftId combinations and no statement on interaction with the sibling preview tools for email or wallet targets.

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 the baseline is 3, but the description adds meaning beyond the schema: it flags that the edited target should be passed "including draftId" and that inputs, state and dataFixtures reuse the same visual test overrides as screenshot_page, which clarifies cross-tool consistency. It does not explain the scenarioId vs. dataFixtures precedence, which the schema only partially covers.

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 gives a specific verb and resource ("Show the user an interactive page preview") plus a distinguishing behavioral trait ("automatically follows saved changes"). The closing sentence explicitly separates it from screenshot_page, so an agent can choose between the two without opening either 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?

It names the trigger conditions ("after completing page changes, or when asked to see a page") and points to the sibling tool for the adjacent need ("Use screenshot_page separately for visual inspection"). It also bounds scope with "Does not edit or publish", leaving little to infer.

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.