Skip to main content
Glama

Create a sandbox

create_sandbox

Copies a Git project into a cloud or local sandbox and starts a coding agent in a connected terminal, excluding .env files, keys, and credentials.

Instructions

Copy a Git project into a new sandbox and start it: a cloud sandbox by default (uploaded; takes a minute or so), or with local: true one on this machine in a Lima VM (nothing uploaded, no sign-in). Copies what git tracks or would track, never .env files, keys or credentials; up to 200 MiB, 25 MiB a file, 20,000 files.

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
nameNoThe sandbox's name. Defaults to the project folder's name. A local sandbox's name must be unique on this machine: letters, digits, dot, dash and underscore.
pathNoA folder inside the Git project to upload; relative paths are resolved against the workspace. Defaults to the open workspace.
agentNoThe coding agent to start in the terminal: claude (Claude Code, the default) or codex (Codex).
localNoCreate the sandbox on this machine instead of RayTrace's cloud. Use when the user asks for a local sandbox. The first one sets up a Linux VM (several minutes).
githubNoCloud only: also make the sandbox a clone of the project's GitHub repository (its origin), on a branch its agent may push to. Needs the RayTrace GitHub App connected for the user's organization.
connectNoOpen a terminal connected to the new sandbox with a coding agent running in it, once it is ready. Defaults to true.
github_repoNoWith github: the GitHub repository to connect to instead of the origin, as owner/name.
install_limaNoWith local: download Lima 2.2.1 (open source, about 25-40 MB, no admin rights) when it is not installed. Only after the user agrees.
without_beta_creditNoCreate a regular sandbox, not the user's free beta sandbox. Only after the user agrees, when create_sandbox reported their free beta sandbox expired or already created.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-idempotent, non-destructive, open-world write; the description adds the material facts an agent needs before calling: cloud runs upload code off-machine, local runs upload nothing and need no sign-in, and startup cost differs (~1 minute vs. several minutes for VM setup). It also discloses the safety envelope — only git-tracked files are copied, .env/keys/credentials are never included — plus concrete limits (200 MiB total, 25 MiB per file, 20,000 files), which are directly relevant to whether the call will succeed.

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?

Two sentences, front-loaded with the action and its default mode, and every clause in the second sentence carries actionable content (what is copied, what is excluded, what the size ceilings are). The dense semicolon-separated limit list is efficient rather than padded, though it reads as a single overloaded sentence.

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 nine-parameter creation tool with no output schema, the description covers mode selection, data egress, prerequisites implied by 'no sign-in' for local, and failure-relevant size limits. The main gap is return semantics — with connect defaulting to true, an agent is not told what handle or terminal result it gets back, which matters when chaining into connect_sandbox/run_command.

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 nine parameters are already documented in structured form, including the consent conditions and the local-only/cloud-only constraints. The description reinforces the cloud-vs-local fork and adds timing/upload context, but contributes little per-parameter meaning beyond what the schema already states.

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

Purpose5/5

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

States a specific verb and resource ('Copy a Git project into a new sandbox and start it') and immediately splits the two execution modes an agent must choose between: cloud by default versus `local: true` in a Lima VM. This is clearly distinct from siblings like connect_sandbox, start_sandbox, or list_sandboxes, which operate on existing sandboxes.

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?

Gives a clear default (cloud, uploaded, ~1 minute) and an explicit trigger for the alternative ('Use when the user asks for a local sandbox' in the local param, echoed by the description). It also gates risky options behind consent ('Only after the user agrees' for install_lima and without_beta_credit). It stops short of saying when NOT to create a new sandbox vs. reusing an existing one via connect_sandbox/list_sandboxes.

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