Skip to main content
Glama

Create a sandbox

sandbox_create

Create a sandbox. Creates a sandbox: a throwaway VM with no project, on the plain base image or on one of your projects' images. It answers at once while the sandbox starts; a command sent to it waits until it is up. It never sleeps and is deleted when ttlMinutes runs out (default 60, at most 1440).

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

Input Schema

NameRequiredDescriptionDefault
envNoEnv vars every command run through this API gets. Stored encrypted.
sizeNo
orgIdNoThe team it belongs to. Defaults to your first team (an API key's own team).
regionNo
projectIdNoStart from this project's current image instead of the plain base image.
ttlMinutesNoMinutes until the sandbox is deleted. Default 60, at most 1440.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations only declare the safety profile (not read-only, not idempotent, not destructive, closed-world); the description adds genuinely new behavior: creation returns immediately while the VM boots, commands block until it is up, the sandbox never sleeps, and it is auto-deleted when the TTL expires. The default of 60 and cap of 1440 minutes are restated from the schema, and it does not say what the create call returns, keeping 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?

The paragraph is short and front-loaded with the core definition, followed by the async-start and lifecycle facts an agent needs. The opening 'Create a sandbox. Creates a sandbox:' duplicates the title and the first sentence, which is the only real waste.

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 6-parameter creation tool with no output schema, the description covers the two things structured fields cannot: the asynchronous create/execute timing model and the TTL-based lifetime. It is silent on the returned handle and on three of the six parameters, but those are partially covered by the schema, so this is close to complete.

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 67%, so the schema already explains ttlMinutes, projectId, and orgId. The description mainly repeats the TTL rule and the base-image-vs-project-image distinction, and says nothing about env, size, or region beyond what the schema carries. Baseline 3 for a mid-coverage schema with little added meaning.

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 gives a specific verb and resource plus a concrete gloss on what a sandbox is: 'a throwaway VM with no project, on the plain base image or on one of your projects' images.' That is far more than a restatement of the title. It does not explicitly differentiate itself from the sibling vm_create, so it stops short of a 5.

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?

Usage is implied rather than stated: an agent can infer this is the entry point for the sandbox_* family (exec, read_file, write_file, delete, extend) from the throwaway-VM framing. There is no explicit when-to-use-this-vs-vm_create guidance or stated prerequisites, leaving the main selection question unanswered.

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.