Skip to main content
Glama

Reboot the guest in place

sandbox_guest_reboot

Restart Windows inside a running sandbox after an installer demands a reboot, preserving the sandbox ID, run artifacts, and in-guest state while reconnecting to the same agent identity.

Instructions

Restart Windows INSIDE the running sandbox: same sandbox id, same run artifacts, in-guest state persists (since 22H2) - the right move after an installer that demands a reboot. The agent is re-injected and verified against the same epoch (identity pinned); the usually-changed IP is learned automatically. Not available with network=off.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sandbox_guest_reboot"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutSecNoWait for the guest to come back (default 300).
idleMinutesNoIdle auto-stop for the re-injected agent (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-alpha.3

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral disclosure burden and does well: it explains that sandbox identity and run artifacts persist, in-guest state persists since 22H2, the agent is re-injected and identity-pinned, and the IP is relearned. It does not describe failure behavior if the guest fails to return within timeoutSec or the operational impact of the reboot window.

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?

The description is dense but front-loaded with the core action, and each clause adds distinct operational value: persistence, version caveat, agent re-injection, identity pinning, IP relearning, and the network=off constraint. There is no redundant or filler content.

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 mutation-style guest operation with no output schema and two optional parameters, the description covers the key context: scope, state persistence, identity behavior, and availability constraints. It is slightly incomplete around timeout/failure semantics and what an agent should expect if the guest does not come back.

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 two optional parameters timeoutSec and idleMinutes are already well documented in the schema. The description adds no additional meaning about their interaction, defaults, or edge cases beyond what the schema provides.

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?

The description states a specific verb and resource: restart Windows inside the running sandbox, with the same sandbox id and artifacts. It distinguishes this from stopping/starting the whole sandbox by emphasizing in-place restart and preserved run artifacts, so an agent can identify the operation immediately.

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?

It gives a clear when-to-use case: after an installer demands a reboot. It also states an explicit exclusion: not available with network=off. The main gap is that it does not name a sibling alternative such as a full sandbox stop/start for cases where in-place restart is unsuitable.

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