Skip to main content
Glama

pangea_create_session

Start an ephemeral isolated sandbox session to run code or apps, optionally injecting env vars and files, and get its access URL and scoped token headers.

Instructions

Start an ephemeral isolated Sandbox session (warm-pool claim when no env/files/resources overrides; cold start when injecting per-session env or files) and return its access URL + Scoped-Token v2 headers.

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

Input Schema

NameRequiredDescriptionDefault
envNoOptional per-session env vars (triggers cold start)
waitNoWait until sandbox becomes ready (default: true)
cpu_mNo
filesNoOptional relative path -> UTF-8 text map mounted read-only at /run/pangea-session/files (triggers cold start)
projectNoOptional project ID (prj_...) or project name
directoryNoOptional local directory containing pangea.yaml
memory_mibNo
idempotency_keyNoOptional idempotency key
max_ttl_secondsNo
idle_ttl_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose genuinely non-obvious behavior: the warm-pool claim versus cold-start tradeoff and the fact that it returns an access URL plus Scoped-Token v2 headers. It omits permissions/auth requirements, failure behavior, and how the session expires (idle/max TTL), which keeps it below a 5.

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?

A single dense sentence with the core action front-loaded and no filler. The nested parenthetical is slightly heavy but every clause carries information about the creation mode.

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

Completeness3/5

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

For a 10-parameter, zero-annotation, no-output-schema tool, the description covers lifecycle mode and return shape but leaves TTL semantics, project/directory resolution, idempotency, and readiness behavior (wait) unexplained. A session-starting tool with this many optional knobs needs more coverage.

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 60% across 10 parameters, and the description only adds meaning for env/files/resource overrides (the cold-start trigger), which the schema already states for env and files. The wait, project, directory, idempotency_key, and both TTL parameters get no explanatory treatment beyond their schema text.

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?

Uses a specific verb ("Start") plus a clearly scoped resource ("ephemeral isolated Sandbox session") and even explains the two creation paths (warm-pool claim vs cold start). It never differentiates itself from nearby siblings such as pangea_create_session_token or pangea_resume_session, so the agent must infer the boundary itself.

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 warm-pool vs cold-start condition is stated, which implies when this tool is the cheap path versus the heavier path, but there is no explicit when-to-use/when-not-to-use guidance relative to token creation, resume, or deploy tools. The agent must infer sequencing from the parenthetical alone.

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