Skip to main content
Glama
CodeSandbox MCP Server

CodeSandbox MCP Server

by techlibs

createSandbox

Create a CodeSandbox sandbox, optionally from a template, and configure custom VM settings for AI agent development and file operations.

Instructions

Create a CodeSandbox sandbox (optionally from a template) and optionally start with custom VM settings.

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

Input Schema

NameRequiredDescriptionDefault
idNo
pathNo
tagsNo
titleNo
vmTierNo
privacyNo
ipcountryNo
descriptionNo
automaticWakeupConfigNo
hibernationTimeoutSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it only says 'create'. It does not state required auth/permissions, defaults for privacy or hibernation, whether the sandbox starts running immediately, or what the caller gets back. The phrase 'custom VM settings' gestures at behavior without explaining it.

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 front-loaded sentence with no filler; the main verb and resource come first. It is tight but so short that conciseness shades into under-specification.

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

Completeness2/5

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

For a creation tool with 10 optional parameters, a nested object, no annotations, and no output schema, one sentence is far too thin. An agent cannot determine valid values, defaults, or the result of the call from this definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 10 parameters at 0% schema description coverage and a nested automaticWakeupConfig object, the description should compensate but instead mentions only a 'template' — a concept that does not even appear as a schema property — while ignoring id, path, tags, privacy, ipcountry, vmTier, and hibernationTimeoutSeconds. This leaves nearly every input's meaning and format undocumented.

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 names a specific verb and resource ('Create a CodeSandbox sandbox') and adds two scope qualifiers (template origin, custom VM settings). It is clearly distinguishable from readers like readFile or lifecycle tools like hibernateSandbox, though it does not explicitly separate itself from the sibling createSession.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus createSession or the other sandbox lifecycle tools, and no stated prerequisites or exclusions. The only contextual hint is the optional 'from a template' phrasing, which implies but never states a usage condition.

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