Skip to main content
Glama
CodeSandbox MCP Server

CodeSandbox MCP Server

by techlibs

hibernateSandbox

Pauses a sandbox by saving files and putting its VM to sleep, preserving state while freeing compute resources for later resume.

Instructions

Hibernate a sandbox (saves files and puts VM to sleep).

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

Input Schema

NameRequiredDescriptionDefault
sandboxIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does state the two concrete effects (files saved, VM suspended), but omits reversibility (whether resumeSandbox restores the state), what happens to running processes or open sessions, idempotency if already hibernated, and any failure modes for a mutating operation.

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 the effect statement in parentheses; nothing is wasted. It is efficient but minimal, with no structural cues for prerequisites or follow-up actions.

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 state-changing lifecycle tool with no annotations, no output schema, and an undocumented required identifier, the description should cover reversibility, resulting state, and error conditions. It explains the side effects but leaves an agent unable to predict the post-call state or recovery path confidently.

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?

Schema description coverage is 0% and the single parameter sandboxId is undocumented in both schema and description. The phrase 'a sandbox' only loosely maps to it; there is no indication of accepted identifier form or which sandbox scope is valid, so the description does not compensate for the coverage gap.

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 ('Hibernate a sandbox') and the parenthetical defines what hibernation means in this system ('saves files and puts VM to sleep'), which is more than a tautology. It does not reference the inverse sibling resumeSandbox, so an agent must infer the pairing, keeping it below 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 only implied: an agent can reason that hibernation is appropriate when pausing work while preserving files, and that resumeSandbox is the counterpart. There is no explicit when-to-use, when-not-to-use (e.g. already-hibernated or active-session state), or named alternative.

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