Skip to main content
Glama

sandbox_management

Execute code in ephemeral Docker containers or stateful sessions, and launch, monitor, or test Windows Sandbox environments for isolated development and automated install validation.

Instructions

Docker and Windows Sandbox code execution and bringup tool.

Ephemeral containers, stateful sessions, Windows Sandbox launch/status, and automated naked-install testing for fleet repos.

Return Format

Dict with success (bool), human-readable message, the action performed, and operation data (result, sessions, job). Failures carry a human-readable error.

Examples

await sandbox_management(action="execute_code", code="print('hi')", language="python")
await sandbox_management(action="session_create", sandbox_name="dev")
await sandbox_management(action="win_sandbox_status")
await sandbox_management(action="win_sandbox_naked_test", repo="plex-mcp")

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": {
      "action": "<action>"
    },
    "name": "sandbox_management"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoCode to run (execute_code).
repoNoFleet repo for naked-test.
imageNoContainer image (session_create).python:3.13-slim
plainNoPlain output without formatting.
actionYesSandbox operation to perform.
branchNoRepo branch for naked-test.main
job_idNoNaked-test job id (status).
commandNoCommand to run (session_run).
contentNoFile content (session_write_file).
timeoutNoExecution timeout in seconds.
languageNoCode language (execute_code).python
host_pathNoHost script path (execute_file).
health_urlNoHealth URL for naked-test ('none' opts out for non-HTTP entrypoints).
sandbox_idNoSession container id (session_*).
observe_secNoObservation window for naked-test.
memory_in_mbNoSandbox memory in MB.
sandbox_nameNoSession name (session_create).
container_pathNoIn-container file path (session_write/read_file).
network_enabledNoAllow container network access.
install_claude_desktopNoInstall Claude Desktop in Windows Sandbox.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

B3.4/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 behavioral burden. It usefully discloses the return shape and notes that containers are ephemeral and sessions are stateful. It does not describe side effects, the destructive implications of session_destroy or win_sandbox_terminate, host requirements, permissions, or cleanup behavior.

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?

The description is front-loaded with purpose and then provides return format and examples in a clear structure. It is appropriately sized for a 16-action tool. The introductory sentence is slightly broad, but there is no significant wasted wording.

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 has high complexity: 16 actions and 20 parameters. The schema covers parameters, an output schema exists, and the description lists categories and examples. However, action-selection guidance and safety or operational caveats are missing, which matters for a no-annotation tool that includes destructive operations.

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 the input schema already documents all 20 parameters. The examples show a few parameter combinations, including action, code, language, sandbox_name, and repo, but the description does not add meaning beyond the schema for most parameters.

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 resource and set of operations: Docker and Windows Sandbox code execution, bringup, ephemeral containers, stateful sessions, Windows Sandbox launch/status, and naked-install testing. This is clearly more than a tautology. It does not explicitly distinguish sandbox_management from sibling tools such as vm_management or system_management, so it falls short of 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?

The examples and category list imply when to use the tool: execute code, manage sessions, launch/check Windows Sandbox, and run naked tests. However, there is no explicit guidance on choosing between actions such as execute_code versus session_run, or when to use sandbox_management versus vm_management. No exclusions or prerequisites are stated.

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