Skip to main content
Glama

Create a preview

create_preview
Destructive

A preview environment for a branch, with its own address.

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": "create_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoReference environment.production
nameNoName of the environment (otherwise, the branch).
waitNotrue: answers once done.
branchNoThe Git branch.
projectNoThe project.
ttl_hoursNoLifetime of the preview, in hours.
copy_databaseNoCopy the production data (otherwise empty databases): needs data.backup on its databases.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the description carries a lower bar, yet it adds nothing about the consequences: that previews expire after a TTL, that resources are torn down, or that the branch must already exist. The one added detail ('its own address') is a return-value trait rather than behavioral context, leaving the destructive semantics entirely to 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 a single short fragment with no wasted words, but that brevity comes from under-specification rather than editing: there is no verb, no subject, and no lead-in explaining the action. Conciseness is fine; structure is weak because nothing is front-loaded about what actually happens.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a destructive, non-idempotent mutation with seven parameters and no output schema, and the description is one noun phrase. For a tool that provisions environments, optionally copies production data, and auto-expires, an agent needs at least the lifecycle and side-effect story, which is absent.

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%, so all seven parameters (from, name, wait, branch, project, ttl_hours, copy_database) are already documented, setting the baseline at 3. The description adds no syntax, defaults, or interaction between parameters beyond what the schema states.

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

Purpose3/5

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

The fragment names the resource precisely ("a preview environment for a branch, with its own address"), which is more informative than a bare restatement of the name. But it is a noun phrase with no verb and gives no signal for distinguishing it from sibling mutations such as create_project or deploy_app, so an agent must infer that this specifically provisions a branch preview.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to pick this over create_project or deploy_app, what prerequisites exist (e.g. a linked Git repo, a branch), or when a preview is inappropriate. The only implicit cue is the word 'preview', which is already in the name.

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