Skip to main content
Glama

Preview hosted app

preview_app
Read-only

Look at a hosted app as a visitor sees it: returns screenshots of its live address on a phone (390×844) and a desktop (1280×800) as JPEG images, taken once the page has loaded. Use it after deploy_app or edit_app_source and before giving the user the link: check the layout, the text, the empty and error states, and fix what looks wrong. New files can take about a minute to be served, so a preview right after a change may still show the old version. An app that is not public is opened without its password or a sign-in, as a visitor who changes nothing: what the page shows only to a signed-in member, such as comments, is missing. Requires permission to edit the folder the app shows.

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": {
      "slug": "<slug>"
    },
    "name": "preview_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSlug of the app, from list_apps
organizationNoWorkspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations, it discloses material behavior: images are captured only after the page loads, new files may take ~a minute to be served so a preview may be stale, and non-public apps are opened unauthenticated so signed-in-only content (e.g. comments) is absent. It also notes the permission requirement, which an agent needs before invoking.

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?

It is front-loaded with purpose and return format, then moves to usage and caveats; nearly every sentence carries information. It is somewhat dense in the opening sentence and could be trimmed slightly, but it is not padded.

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 read-only screenshot tool with no output schema (it returns images), the definition covers purpose, usage timing, staleness characteristics, authentication behavior, and required permissions. An agent has everything needed to decide to call it and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both parameters (slug and organization are both documented in the schema), so the schema already carries parameter meaning. The description adds only indirect hints ('the app shows', permission to edit the folder) and does not elaborate on slug or organization semantics. Baseline 3 is appropriate.

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 description opens with a specific verb and resource: 'Look at a hosted app as a visitor sees it', then specifies exactly what is returned (phone 390×844 and desktop 1280×800 JPEG screenshots of its live address). This is clearly distinct from siblings like deploy_app and edit_app_source, which only build or change the app.

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 explicitly states when to use it ('after deploy_app or edit_app_source and before giving the user the link') and what to check (layout, text, empty and error states, fix what looks wrong). The sequencing relative to named siblings removes any ambiguity about alternatives.

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