Skip to main content
Glama

PillDrops

create_sandbox

Create an isolated cloud sandbox. Returns {id, status, url?}. For app servers pass start (long-lived command) and ports — the app MUST listen on the injected $PORT env var, and the returned url is a public preview. Destroy sandboxes when done — a running sandbox holds a concurrency slot and keeps metering.

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_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoenvironment variables, KEY=VAL
slugNoDNS label this sandbox is hosted and resolved under; also its name on a network tag (<slug>.pd)
vcpuNovCPUs (0 = template default)
imageNocustom docker image instead of a template
portsNopreview ports (app must bind $PORT)
startNolong-lived app/server command; makes the sandbox serve a preview URL
publicNomake the preview URL reachable without a token (shareable link); default false = private
runtimeNopin isolation runtime: firecracker | docker (omit = auto)
volumesNostandalone volumes to attach (see create_volume)
networksNoopt-in network tags. Sandboxes cannot reach each other by default; two in the same org on the same node reach each other only if they share a tag, and resolve each other as <slug>.pd
templateNotemplate id (see list_templates); default python-3.11
memory_mbNomemory MB (0 = template default)
storage_mbNodisk MB (0 = template default)
secret_refsNovault secrets (see list_secrets) to put in the sandbox's environment by name
idle_secondsNoidle auto-pause; -1 = never pause (always-on servers)
proxied_secretsNovault secrets the sandbox may use but never sees: it gets NAME=pd-proxied and NAME_PROXY_URL, and the node adds the secret to calls made through that URL to host. Point the SDK's base URL at it, e.g. OPENAI_BASE_URL=$OPENAI_API_KEY_PROXY_URL/v1
timeout_secondsNosandbox lifetime (0 = plan default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return shape, the public-preview consequence of `start`/`ports`, and the cost/concurrency side effect of a running sandbox, which is valuable beyond structured fields. It omits authorization or scope requirements and does not say what happens on name/slug collisions or creation failure.

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?

Three sentences, front-loaded with purpose then return value then lifecycle warning, with no filler. The em-dash-heavy phrasing in the app-server sentence is slightly dense but still readable.

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 17-parameter creation tool with no annotations and no output schema, the description supplies the essentials: return shape, the app-server/$PORT contract, preview URL semantics, and the destroy/metering obligation. Remaining gaps (auth, defaults already in schema) are minor given the schema documents every parameter.

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 baseline would be 3, but the description adds cross-cutting meaning the schema cannot: the $PORT binding contract for `ports`/`start` and the fact that the returned URL is a public preview. That connects several parameters into a single operational rule the agent must follow.

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 opens with a specific verb and resource ("Create an isolated cloud sandbox") and immediately states the return shape, so the agent knows exactly what the call produces. It does not name a sibling (e.g., fork_sandbox or resume_sandbox) as the contrasting alternative, so differentiation is left implicit.

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?

It gives real conditional guidance: for app servers pass `start` and `ports`, and the app must bind $PORT. It also tells the agent to destroy sandboxes when finished and explains why (concurrency slot + metering), which is actionable lifecycle guidance rather than mere context. It stops short of explicit exclusions such as when to prefer fork_sandbox or resume_sandbox over a fresh create.

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.