Skip to main content
Glama

Preview

preview
Destructive

Promote your app's preview to live (Pro; needs a successful preview deploy) or discard it: action is promote or discard. A discard stops the preview fleet and removes its trial state; live is untouched, and cleanup is always allowed, even off Pro.

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": {
      "app": "<app>",
      "action": "<action>"
    },
    "name": "preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app slug.
waitNoWait for the live deploy (default true). False returns immediately; poll deploy_status. Ignored when discarding.
actionYes`promote` fast-forwards main to the preview commit and deploys it (Pro; needs a successful preview deploy). `discard` stops the preview fleet and removes its trial state; live is untouched, and cleanup is always allowed, even off Pro.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructive=true, readOnly=false, and openWorld=true, so the bar is lower; the description still adds real value by spelling out what discard destroys (preview fleet and trial state) and what it leaves untouched (live), plus the Pro-gated prerequisites for promote. It does not cover reversibility of promote or failure handling.

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?

Front-loaded with the primary action and only two sentences long, with no filler. It loses a point because the discard clause duplicates, nearly word for word, the action enum description already present in the schema.

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?

For a destructive two-mode mutation tool with no output schema, the description covers prerequisites, side effects, and the safety guarantee for discard, which is what an agent most needs before acting. Verification after promote is only implied indirectly via the schema's `wait` note, leaving a minor gap.

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 coverage is 100%, so `app`, `wait`, and `action` are already fully documented in the schema; the description's action explanation is essentially a verbatim restatement of the action parameter text. The `wait` parameter's polling behavior is never mentioned in the description, so no meaning is added beyond structured data.

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?

States specific verbs and a specific resource: promote an app's preview to live, or discard it. The two operations are unambiguous and clearly distinct from sibling deployment tools like ship, stage, or deploy_status.

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?

Gives concrete conditions for each branch: promote requires Pro and a successful preview deploy; discard is always allowed even off Pro. It does not explicitly contrast with sibling tools (ship/stage) that also move code toward live, so the agent must infer that routing.

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.