Skip to main content
Glama

ohmyho.st

Open environment preview

preview_open
DestructiveIdempotent

Open or create a private live preview for the specified project and environment. Available on Free and Paid. Source saves update the preview without a deployment. Returns its private link, state, expires_at, failure, data and ready_to_show. The link lasts at most 24 hours, and opening a preview after expiry creates a new link. The preview sleeps after ten idle minutes and wakes when the link is opened. Database readiness is reported independently of ready_to_show. Preview does not persist application data.

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_id": "<project_id>",
      "environment": "<environment>"
    },
    "name": "preview_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYes
environmentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: 24-hour maximum link lifetime, new link creation on post-expiry access, ten-minute idle sleep with wake-on-open, independent database readiness reporting, and no persistence of application data. It does not explain the destructiveHint=true annotation — what is destroyed or replaced by calling this — which leaves the safety profile partly unexplained.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose in the first sentence, then layers lifecycle, return fields, and data-persistence caveats with no filler. The return-field enumeration earns its place given there is no output 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 two-parameter tool with annotations and no output schema, the definition covers lifecycle, expiry, sleep/wake, return values, and data persistence well. The gaps are the unexplained destructive behavior and the absence of any parameter format detail.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning, but it only says 'specified project and environment.' It never mentions the dev/prod enum values, the ULID-style project_id pattern, or whether project_id accepts names or slugs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Open or create a private live preview for the specified project and environment,' making the get-or-create semantics explicit. It does not name or contrast with siblings such as preview_get, preview_draft, or preview_stop, so an agent must infer why this one rather than another preview tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'open or create' — call it to obtain a live preview link for a project/environment. The 'Available on Free and Paid' line is plan eligibility, not when-to-use guidance, and there is no explicit statement of when to prefer preview_get or preview_draft instead.

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.