Skip to main content
Glama

Try the page

preview_try
Destructive

Presses the project's own preview page in a clean browser and says what happened, because a screenshot presses nothing. Use it before saying a player, menu, slideshow, form or search works. Steps run in order, up to 20: click, type (value), select (value), upload (a test file on a file field or the button that opens one: value photo.jpg, the default, photo.png, document.pdf, notes.txt or sound.wav), press (value: a key), scroll (or value top, bottom), wait (ms), expect (text or selector, state visible or hidden; or value: a field's value, a list's chosen option, "checked"), media (each audio and video element, whether its time is really moving, its volume, its errors; value play plays each first, as a built-in player's button would), screenshot (up to 4), measure (text or selector: where each match is in pixels, and how far apart their tops, centres and edges are; for "it isn't lined up"). click, type, select, upload and expect name what they act on as a visitor sees it (text) or with selector. viewport mobile (the default, with touch), tablet, desktop or wide, or width: any width in px. Each step reports whether it worked, the page it led to and sideways scrolling; a click that fails stops the run, and says when something else is on top. The result has the browser's errors and the page after the last step. Preview only: steps change the preview's data as a visitor would, never the live site. Sign-in: sign in with http_request and pass its cookie as headers (it goes into the browser's cookies, so the page's own requests have it too), or type into the form. A share, a copy and a download are reported (a share answers as if the visitor shared). It tests what a browser can do: it hears nothing, so it can't say how something sounds, and it isn't a real phone.

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": {
      "project": "<project>",
      "steps": "<steps>"
    },
    "name": "preview_try"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe page to open, e.g. "/"./
portNo
stepsYes1 to 20 steps, run in order. A longer journey goes in several calls: each opens a fresh browser, so sign in again, or pass a signed-in cookie in headers.
widthNoAny width in CSS px instead of viewport (320 for a small phone).
headersNoSent with each of the page's own requests, e.g. a Cookie from signing in with http_request.
projectYesProject slug or id.
viewportNomobile
include_imageNofalse: leave the screenshots out of the result, keeping their links (for an app that prints results as text).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Despite annotations already declaring destructive=true and readOnly=false, the description adds substantial behaviour: steps run in order up to 20, each call opens a fresh browser so sign-in must be repeated or a cookie passed, a failed click stops the run and reports overlapping elements, dialogs are dismissed unless dialog "accept" is set, share/copy/download are reported, and the result contains the browser's errors plus the final page. It also discloses limits (no audio perception, not a real phone). The preview-only mutation claim is consistent with destructiveHint=true.

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?

The purpose is front-loaded, but the body is one dense run-on block with nested parenthetical lists of step verbs, files and states that is hard to scan. Almost every clause carries information, so it is not padding, yet bullets or sentence breaks would make it materially easier to parse.

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?

For a complex 8-parameter tool with nested step objects and no output schema, the description covers what an agent needs: the step vocabulary, per-step success reporting, the fresh-browser isolation rule and its sign-in consequence, the 20-step cap, viewport/width control, and what the result contains. Remaining gaps (exact result shape) are minor.

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?

The schema covers 75% of parameters, but the description still adds cross-cutting meaning the schema cannot: 1-20 steps per call with fresh-browser-per-call semantics, status expectations making an HTTP error a success, the default dismissal of dialogs, headers being injected into both page and sub-requests, include_image leaving screenshot links behind, and what upload's named test files mean. Some items (file names, viewport values) merely repeat the schema, so not a 5.

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?

"Presses the project's own preview page in a clean browser and says what happened, because a screenshot presses nothing" names a specific verb (drives/clicks through a page) and resource (the project's preview), and explicitly contrasts itself with the screenshot-oriented sibling. An agent can tell this is the interactive UI-testing tool, not a static-capture one.

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?

"Use it before saying a player, menu, slideshow, form or search works" gives explicit when-to-use guidance, and "Preview only... never the live site" plus the sign-in route via http_request gives clear context and an alternative for authentication. It stops short of stating when not to use this rather than preview_screenshot for a pure visual check, so it is not a full 5.

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