Skip to main content
Glama

pangea_preview_up

Creates or updates a stateless PR preview environment from a local directory, inheriting HTTP settings, sleep pool, and GitHub repo link. Use it to deploy or refresh pull request previews.

Instructions

Idempotently create or update a stateless PR preview environment from a local directory (inheriting HTTP settings, sleep pool, and GitHub repo link from clone_from or pangea.yaml).

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": {
      "pr": "<pr>",
      "directory": "<directory>"
    },
    "name": "pangea_preview_up"
  }
}

Input Schema

NameRequiredDescriptionDefault
prYesPull request number
envNoOptional non-secret environment overrides (supports {base}, {pr})
nameNoOptional explicit preview project name
aliasNoOptional <slug>.pangea.host alias template (default: <preview-name>)
cpu_mNo
domainsNoOptional delegated preview hostname templates (e.g. ['pr-{pr}.preview.example.com'])
rebuildNo
rolloutNo
secretsNoOptional encrypted runtime secrets to sync before deploying
allow_labNoAcknowledge disposable-lab capability when targeting a lab workspace
base_nameNoOptional base name for {base}-pr-{pr}
directoryYesLocal application source directory
http_portNo
idle_poolNoOptional shared HTTP sleep pool name
clone_fromNoOptional base project ID (prj_...) to inherit HTTP, sleep pool, and repo link from
dockerfileNoOptional relative Dockerfile path inside directory (default: Dockerfile or pangea.yaml)
memory_mibNo
health_pathNo
scratch_mibNoOptional Web /tmp emptyDir sizeLimit override in MiB (128-32768)
wait_secondsNoSeconds to wait for deploy completion (default: 60)
disable_aliasNoDisable automatic <preview-name>.pangea.host alias assignment
name_templateNoOptional project name template (default: '{base}-pr-{pr}')
service_bindingsNoOptional enrolled HTTP service binding names
ttl_stopped_secondsNo
github_repository_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses idempotency, statelessness, and inheritance from clone_from or pangea.yaml, but it omits permissions, side effects, replacement semantics, secrets handling, wait behavior, and workspace/lab requirements.

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?

The definition is a single front-loaded sentence with no filler. The parenthetical inheritance detail is dense but earns its place by explaining default behavior.

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?

For a complex 25-parameter mutation tool with no annotations and no output schema, the description is far too thin. It covers the core purpose and idempotency, but it does not provide enough operational context for safe and correct invocation.

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?

The description mainly repeats schema-documented concepts like clone_from and local directory, adding only the pangea.yaml fallback for inheritance. With 25 parameters and only 68% schema description coverage, many important parameters such as cpu_m, memory_mib, rebuild, rollout, health_path, and ttl_stopped_seconds receive no extra meaning from the description.

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?

The description clearly states a specific verb and resource: idempotently create or update a stateless PR preview environment from a local directory. It is easy to distinguish from pangea_preview_down by intent, but it does not explicitly differentiate itself from sibling deployment or project-creation tools.

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?

The use case is implied: standing up or refreshing a PR preview environment from a local source directory. However, it gives no explicit when-to-use guidance, prerequisites, exclusions, or alternative tools to choose instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools