Skip to main content
Glama
CodeSandbox MCP Server

CodeSandbox MCP Server

by techlibs

resumeSandbox

Resumes a hibernated sandbox or starts it if shut down, restoring VM access for continued CodeSandbox sessions.

Instructions

Resume a hibernated sandbox or start it if shut down.

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": {
      "sandboxId": "<sandboxId>"
    },
    "name": "resumeSandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
sandboxIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose a genuinely useful state machine: two prior states map to two behaviors (resume vs. start). It omits what happens when the sandbox is already running, whether the call is idempotent, and whether it blocks until ready.

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?

A single front-loaded sentence with no filler; the state qualifier is packed in without any redundant restatement of the tool name.

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 one-parameter lifecycle operation with no output schema, the description covers the essential trigger conditions. The remaining gap is the undefined sandboxId format, which the schema also fails to document.

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?

There is one required parameter, sandboxId, with 0% schema description coverage, so the description must supply the missing meaning and does not. It never states the expected identifier format, where to obtain it, or whether it accepts a name versus an ID, leaving the only parameter effectively undefined.

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?

States a specific verb (resume) and resource (sandbox), and clarifies the two source states: hibernated vs. shut down. An agent can tell this acts on a single sandbox rather than a session, though it never explicitly distinguishes itself from the sibling resumeSession.

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 by the state conditions in the description: call this when the sandbox is hibernated or shut down. There is no explicit exclusion, no mention of what to use if the sandbox is already running, and no routing between this and resumeSession or createSandbox.

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