Skip to main content
Glama
neu-sandbox-mcp

neu-sandbox-mcp

Official
by neutree-ai

Create Sandbox

create_sandbox

Creates an isolated container sandbox from a specified image and returns a sandbox ID for running commands, managing files, or coding tasks; set timeout and resources to control expiry.

Instructions

Create an isolated sandbox environment with a specified container image. Returns a sandbox_id for use with other sandbox tools. The sandbox auto-expires after the timeout (default 1 hour). Extend it with sandbox_renew. For coding tasks (e.g. git clone, npm install, dev server), use a longer timeout like 21600 (6h) or 86400 (24h) and higher resources (cpu: "2", memory: "4Gi").

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "image": "<image>"
    },
    "name": "create_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment variables to inject into the sandbox
imageYesContainer image URI, e.g. "node:22-bookworm", "python:3.12-bookworm"
resourceNoResource limits for the sandbox
timeout_secondsNoSandbox timeout in seconds (default: 3600).
resource_requestsNoResource requests, reserved against node capacity. Defaults to the same values as `resource` (limits). Set them lower for a sandbox that idles between bursts, so it stops holding its full limit. Ignored by older sandbox runtimes, in which case requests stay equal to limits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose key lifecycle behavior: auto-expiry after a timeout defaulting to 1 hour, and renewal via sandbox_renew. It does not cover provisioning failure modes, whether creation blocks until the sandbox is ready, or cost implications, 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?

Four short sentences, front-loaded with what the tool does and its return value, then lifecycle, then sizing advice. The only minor waste is restating the default timeout already visible in the schema, though the human-readable '1 hour' framing makes that largely earn its place.

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?

There is no output schema, so the description correctly states the return value (sandbox_id) and explains the auto-expiry contract an agent must plan around. For a 5-parameter creation tool with nested objects, the remaining gap is only error/readiness behavior and cleanup via kill_sandbox.

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?

Schema coverage is 100%, so baseline is 3; the description adds practical meaning beyond the schema by translating the default into '1 hour' and giving task-derived concrete values (timeout 21600/86400, cpu "2", memory "4Gi") that tell an agent how to size parameters rather than just their format.

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 ('Create an isolated sandbox environment with a specified container image') and immediately scopes the outcome ('Returns a sandbox_id for use with other sandbox tools'), which cleanly separates it from sibling operations like sandbox_run_command or kill_sandbox that act on an existing sandbox.

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 concrete when-to guidance (coding tasks such as git clone, npm install, dev server) with recommended timeout and resource values, and names sandbox_renew as the alternative for extending life rather than recreating. It stops short of explicit exclusions or failure conditions, so it is clear context rather than full routing guidance.

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