Skip to main content
Glama

Create a sandbox

create_sandbox

Create and start cloud or local coding sandboxes from a Git project, cloud master, or parent sandbox for isolated agent work.

Instructions

Create and start a sandbox: from the open Git project, from a published cloud Master Sandbox (with optional empty: true), or as an isolated child of an existing parent sandbox (parent + inherit). Cloud by default, or local: true on this machine in a Lima VM.

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.
sizeNoCloud only: sandbox size (defaults to small, or parent size when creating a child).
agentNoThe coding agent to start in the terminal: claude (Claude Code, the default) or codex (Codex).
emptyNoStart with an empty /workspace (does not require a local Git repository when paired with master or parent).
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.
masterNoCloud only: initialize /opt/env dependencies from a published organization master sandbox (by ID or name).
parentNoCreate a child sandbox from an existing parent sandbox (cloud rtp-... ID or local sandbox name).
connectNoOpen a terminal connected to the new sandbox with a coding agent running in it, once it is ready. Defaults to true.
inheritNoWith parent: comma-separated exact set of scopes to inherit (workspace, env, secrets, auth, or none). Defaults to "workspace,env" (or "env" with empty: true).
env_profileNoCloud only: attach an encrypted organization env profile (by ID or name). Values are injected only at command/shell exec time and scrubbed from recorded traces.
github_repoNoWith github: the GitHub repository to connect to instead of the origin, as owner/name.
inherit_gitNoWith parent (cloud only): attenuated Git repository access inherited from parent. Defaults to "none".
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.
parent_turn_idNoWith parent: optional parent trace/turn ID to link in lineage metadata.
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. Changed8 schema fields changedv1.0.0
    • addedInput schema / properties / empty
      Added value: +{
      +  "description": "Start with an empty /workspace (does not require a local Git repository when paired with master or parent).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / env_profile
      Added value: +{
      +  "description": "Cloud only: attach an encrypted organization env profile (by ID or name). Values are injected only at command/shell exec time and scrubbed from recorded traces.",
      +  "type": "string"
      +}
    • addedInput schema / properties / inherit
      Added value: +{
      +  "description": "With parent: comma-separated exact set of scopes to inherit (workspace, env, secrets, auth, or none). Defaults to \"workspace,env\" (or \"env\" with empty: true).",
      +  "type": "string"
      +}
    • addedInput schema / properties / inherit_git
      Added value: +{
      +  "description": "With parent (cloud only): attenuated Git repository access inherited from parent. Defaults to \"none\".",
      +  "enum": [
      +    "none",
      +    "read",
      +    "write"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / master
      Added value: +{
      +  "description": "Cloud only: initialize /opt/env dependencies from a published organization master sandbox (by ID or name).",
      +  "type": "string"
      +}
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Create a child sandbox from an existing parent sandbox (cloud rtp-... ID or local sandbox name).",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / parent_turn_id
      Added value: +{
      +  "description": "With parent: optional parent trace/turn ID to link in lineage metadata.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / size
      Added value: +{
      +  "description": "Cloud only: sandbox size (defaults to small, or parent size when creating a child).",
      +  "enum": [
      +    "small",
      +    "medium",
      +    "large"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=true and idempotentHint=false. The description usefully adds that the result is a started (running) sandbox, not just a record, and that local creation spins up a Lima VM, but the VM cost is also stated in the 'local' parameter description, and nothing warns that repeated calls create additional sandboxes (non-idempotent).

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?

Two sentences, no filler, with the mode enumeration front-loaded before the cloud/local default. Dense but fully readable for a 17-parameter tool.

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 wide, all-optional schema with no output schema, the description covers the creation model and defaults well. It leaves out what the caller gets back (sandbox name or rtp-... ID) and roughly how long cloud creation takes, which matters because connect defaults to true and the caller may need the identifier for follow-up calls.

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?

With 100% schema coverage the baseline is 3, but the description goes beyond by grouping 17 parameters into three coherent creation modes and surfacing the coupling hints (empty with master or parent, parent with inherit, cloud vs local). It stops short of explaining interactions such as github vs github_repo or how inherit scopes compose with size defaults.

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?

Specific verb+resource ('Create and start a sandbox') followed by an explicit enumeration of the three creation shapes (open Git project, published cloud master sandbox, isolated child of a parent) plus the default cloud-vs-local axis. An agent can tell this apart from start_sandbox (starts an existing one) or branch_sandbox (a separate branching path) from the description alone.

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 states that cloud is the default and that 'local: true' is the local-machine path in a Lima VM, which is genuinely conditional guidance. It does not say when to prefer the master-sandbox or parent/inherit modes, nor when a sibling such as branch_sandbox would be the better call, so it falls short of a 5.

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