Skip to main content
Glama

Test an installer in a fresh sandbox

sandbox_install_test

Runs a one-shot installer test in a fresh Windows Sandbox: snapshot, install, optionally test, uninstall, snapshot, report added or leftover files, registry, services, autoruns, tasks, processes.

Instructions

One shot: boot a fresh sandbox, snapshot, run the installer silently, snapshot, optionally run a test script, uninstall using what the installer registered in Add/Remove Programs, snapshot again, destroy the sandbox. Reports exactly what the install added (files, registry, services, autoruns, scheduled tasks, processes left running) and what the uninstaller left behind. If an installer hangs (usually a dialog waiting for a click), it is screenshotted and its controls are listed. Fails if a sandbox is already running.

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": {
      "installer": "<installer>"
    },
    "name": "sandbox_install_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoInstaller arguments. .msi already gets /qn /norestart; for .exe pass the silent switch (/S, /VERYSILENT, /quiet...).
keepNo
testNoHost .ps1 run after install. Gets $env:SBX_INSTALL_DIR, SBX_PROGRAM, SBX_OUT. Non-zero exit = fail.
excludeNoExtra noisy paths to ignore in the snapshots.
networkNoon (default): normal internet. firewall: guest firewall blocks outbound (code running as admin could undo it). off: no network adapter at all (strongest isolation; the agent talks over shared folders, a bit slower).
installerYesHost path to a .msi, .exe, .ps1, .cmd or .bat installer.
uninstallNo"auto" (default), "none", or an uninstall command line to run instead.
timeoutSecNoPer installer/uninstaller run (default 600).
uninstallArgsNoAuto mode: appended to the registered UninstallString when there is no QuietUninstallString, e.g. /S.
failOnLeftoversNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it enumerates each phase, discloses that the sandbox is destroyed at the end, that a hung installer is screenshotted with its controls listed, and that the tool refuses to run when another sandbox is active. Mutation and teardown behavior are unambiguous.

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?

Front-loaded with 'One shot:' followed by a sequence that mirrors execution order, and every clause carries information. It is a dense single paragraph that would scan faster as a short list, but there is little wasted wording.

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

Completeness5/5

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

For a 10-parameter, no-output-schema tool, the description covers the lifecycle, the reported artifacts (files, registry, services, autoruns, scheduled tasks, leftover processes), failure modes, and the running-sandbox precondition. Nothing essential to calling it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 80%, so the baseline is 3. The description adds real meaning on top: 'uninstall using what the installer registered in Add/Remove Programs' explains what the default 'auto' mode of the uninstall parameter actually does, and 'optionally run a test script' frames the test parameter's role in the flow.

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 opens with a concrete action ('boot a fresh sandbox, snapshot, run the installer silently...') that names the resource and the full workflow scope. It is clearly distinct from siblings like sandbox_run or sandbox_exec, which would require manual orchestration.

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 implies the right context (validating an installer end-to-end) and gives one hard precondition: 'Fails if a sandbox is already running.' It does not, however, name an alternative path for agents that want manual step-by-step control via sandbox_start/sandbox_exec.

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