Skip to main content
Glama
CodeSandbox MCP Server

CodeSandbox MCP Server

by techlibs

updateSandbox

Modify a running sandbox's VM settings — change its compute tier dynamically without a reboot or adjust the inactivity hibernation timeout. Use it to resize resources or tune idle shutdown for an active sandbox.

Instructions

Update VM settings for a running sandbox: tier and/or hibernation timeout.

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

Input Schema

NameRequiredDescriptionDefault
vmTierNoChange VM tier dynamically without reboot.
sandboxIdYesTarget sandbox ID to update (VM must be running).
hibernationTimeoutSecondsNoUpdate inactivity hibernation timeout in seconds (max 86400).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/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 behavioral burden and it discloses very little. It never says whether a tier change incurs downtime or cost, whether changes are reversible, what permissions are needed, or what happens to existing settings not mentioned. Only the 'running sandbox' precondition is offered as behavioral context.

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 redundant or filler wording; the scope and the two target settings come first. It is efficient, though borderline terse for a mutation tool whose behavior is otherwise undocumented.

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

Completeness3/5

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

The tool is simple (three flat parameters, one enum, no output schema, no nested objects) and the schema is fully documented, so the description needn't explain return values. However, for a write operation with zero annotation coverage, it leaves the agent without side-effect, reversibility, or permission context needed to invoke it confidently.

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 100%, so vmTier, sandboxId, and hibernationTimeoutSeconds are already documented in the schema, including the enum values and the 86400 maximum. The description only restates the two updatable settings and adds no syntax, unit, or interaction detail beyond the schema.

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 states a specific verb (Update) and resource (VM settings for a running sandbox) and names the two settings that can change, which separates it from createSandbox and hibernateSandbox. It stops short of explicitly naming any sibling as an alternative route, which keeps it from 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?

'for a running sandbox' and 'and/or' imply that the sandbox must already exist and be running and that either setting can be changed independently. There is no explicit when-to-use vs. when-not guidance and no pointer to siblings such as hibernateSandbox as an alternative for timeout behavior.

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