Skip to main content
Glama

Screenshot

preview_screenshot
Read-onlyIdempotent

A screenshot of a page of the project's running app (path, viewport desktop, mobile, tablet, wide or all, or width: any width in px, full_page). A path with a fragment ("/#rooms") shows that part of the page; full_page scrolls through first, so lazy pictures are in. viewport all returns phone, tablet and wide laptop side by side in one image: use it to see a layout at every width in one call. Returns the image and a link to it that works for an hour. Use it to see what you built; design_check also measures what to fix. Pages behind the app's own sign-in: sign in with http_request, then pass its session cookie as headers {"Cookie": "..."} (sent only to the app; the log keeps header names only). The page's own WebSockets reach the app (a dev server's live reload, a live view's updates); sockets to other sites are closed. It also lists the browser errors in that clean browser (no extensions): uncaught errors, console errors and the app's own failed requests (include_warnings adds console warnings), or says none; when the user reports an error from their own browser, look here first. When the page didn't answer 2xx (a missing page's 404, a 500), its first line says so. compare: true compares with the previous screenshot of the same page, viewport and env: how alike, which parts changed and which didn't (the header, each section, the footer); take one before a change and one with compare after it, since an edit that succeeded isn't proof it looks right. reference: an image under data/import of how it should look (the person's upload, a captured site's screenshot): how alike the page is and where it differs most.

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>"
    },
    "name": "preview_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNopreview
pathNo/
portNo
widthNoAny width in CSS px instead of viewport: 320 or 375 for a small phone, 844 for a phone held sideways, a width just either side of a breakpoint. Below 1025 it renders with touch, as a phone or tablet.
compareNoCompare with the previous screenshot of this page at this viewport and env: how alike, and which parts changed.
headersNo
projectYesProject slug or id.
viewportNodesktop
full_pageNo
referenceNoAn image under data/import of how the page should look (the person's upload, or a captured site's screenshots/…): how alike the page is to it and where it differs most. A tall image means a full page (full_page defaults to it).
include_imageNofalse: leave the image out of the result, keeping its link (for an app that prints results as text).
include_warningsNoAlso list the page's console warnings (default: errors only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Well beyond the readOnly/idempotent annotations, it discloses that the returned link works for an hour, that the browser is clean with no extensions, that cookies are sent only to the app and the log keeps header names only, that same-app WebSockets are allowed while third-party sockets are closed, and that a non-2xx response surfaces on the first line. It also documents the error/warning inventory returned. These are exactly the operational facts an agent cannot get from the annotations.

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?

It is front-loaded correctly — the what and the viewport options come first — but the body is a dense run-on of clause-stacked sentences with heavy parentheticals. Almost every clause earns its place informationally, yet the lack of paragraph or bullet structure makes it harder to scan than it needs to be for a 12-parameter tool.

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?

No output schema exists, and the description covers what comes back (the image plus an hour-long link, the listed browser errors or 'none', the non-2xx first line, the compare/reference diff report). Authentication, the socket policy, and capture semantics are all addressed, so nothing material is missing for correct invocation.

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?

With 12 parameters and only 50% schema coverage, the description carries real weight: it explains viewport values including 'all' returning three widths side by side, fragment paths ('/#rooms'), full_page scroll-then-capture, headers for the session cookie, compare and reference semantics, and include_warnings. Only env and port are left unelaborated, so the compensation is substantial though not total.

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 names a specific verb and resource — a screenshot of a page of the project's running app — and immediately scopes the enumerable options (path, viewport, width, full_page). It explicitly distinguishes itself from the nearest sibling: 'design_check also measures what to fix', so the agent knows this tool only renders.

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 gives explicit when-to-use ('Use it to see what you built', 'when the user reports an error from their own browser, look here first') and names the alternative, design_check, with the differentiating condition. It also prescribes a workflow for compare (take one before a change, one with compare after) and route viewport 'all' for seeing every width in one call.

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