Skip to main content
Glama

Preview the app

myapp_get_preview
Read-onlyIdempotent

Show the app to the user: call it whenever the user asks to see, show, display or preview the app or one of its pages. It shows the draft as the user would see it in the app, on a phone or a tablet, the whole app or one page: in the conversation where the client shows app views, otherwise as a link to a preview page. Use it in place of a drawing or a mockup of the app, which would not show the app. The draft holds the changes not yet published; the live app changes only when the user publishes from the back office. The link works for one hour. page is a page id or a page name read with myapp_get_app. pending gives the confirmation page of a pending removal and what it would remove. With base in place of app (a starter, a theme id from myapp_propose, a menu type and a name): a link showing the starter's demo app in that look with that name, before any app exists. Pass page to show the page a change touched (a write's result names it): without page, the preview shows the page of the last change or of the last preview made through this connection in the last 15 minutes, possibly in another conversation that uses it, or the home when there is none.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "myapp_get_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoThe app id, as listed by myapp_get_app without app.
baseNoA look for a new app: starter, theme (a theme id from myapp_propose), menu_type (the starter's default without it) and name.
pageNoA page id or a page name, as read with myapp_get_app or named by a write's result; without page, the page of the last change or of the last preview made through this connection in the last 15 minutes, or the app's home.
draftNoSecret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user.
deviceNophone (default) or tablet.
pendingNoThe pending id of a confirmation, as given by myapp_remove or myapp_undo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses draft-versus-live semantics (the live app changes only when the user publishes from the back office), the one-hour link expiry, and the dual delivery channel (inline in the conversation where the client shows app views, otherwise a link). It also warns that the draft secret is not an id and must not be shown to the user, which is genuine safety context not present in annotations.

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?

Purpose and trigger are front-loaded in the first sentence, and most sentences carry distinct information (draft vs live, link expiry, base mode). The final sentence is an overpacked run-on that repeats schema text about the 15-minute fallback, costing some readability.

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 six-parameter optional-argument tool with a nested object and no output schema, the description covers every mode (app, page, draft, base, pending) plus what the caller receives (inline view or link) and how long the link lives. Device selection is the only element left to the schema, where it is fully documented with a default.

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; the description earns a fourth point by explaining the practical intent behind page ('the page a change touched — a write's result names it') and the cross-conversation fallback within 15 minutes. It largely restates the schema's own page and base wording rather than adding new syntax or format detail, which keeps it out of the top band.

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 first sentence states a specific verb and resource ('Show the app to the user') and enumerates the user intents that trigger it (see, show, display, preview the app or one of its pages). It is clearly distinguished from the read-oriented sibling myapp_get_app, which the description cites as the source of page ids and names.

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 triggers, an explicit when-not ('Use it in place of a drawing or a mockup of the app, which would not show the app'), and mode-selection rules for app vs page vs base vs pending vs draft. The default page behavior when page is omitted is spelled out, so the agent knows what it gets without passing anything.

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.