Skip to main content
Glama

sandbox_device

Destructive

Lease a phone for the box, on separate hardware: an Android emulator, or an iPhone simulator on a Mac. attach blocks until it boots. It freezes with the box (an Android emulator keeps its memory; an iPhone simulator shuts down, then reopens the app that was in front) and is attached again when the box thaws, also when the person wakes it in their app. list does not wake the box: it shows frozen devices, failed ones with the reason, and whether each platform's device host is online with free slots, its OS versions and the phones' outgoing IP (not the box's), so check it before building for a phone. The box's screen then IS the phone's screen: sandbox_shot, recordings and takeover all show it. Android also appears to adb in the box as a local device (drive the app with artemis-adb) and takes taps and typing during takeover; psbx-webview <package> forwards an app's WebView DevTools. When adb drops, the box reconnects it by itself, and a crashed or hung emulator restarts on its host with the same serial, apps and data (list shows offline or restarting meanwhile; reconnect retries now). restart reboots a phone in place, keeping apps and data; an iPhone restart also applies simctl ui settings and clears stuck system dialogs. iOS has no adb: the box gets psbx-ios (plus simctl and xcodebuild wrappers) that forward to the Mac (psbx-ios help lists what it does). Every psbx-ios verb runs in the Mac's copy of /work: psbx-ios sync /work/app puts it at work/app there, give paths relative to /work, and build products stay on the Mac. printf '你好' | psbx-ios type types any text, Chinese and emoji included, and a person on the box's screen taps and types on the simulator too. Building a Capacitor or React Native iOS project there means psbx-ios sync of the ios/ folder AND the node_modules the Xcode project links to, at the same relative path, or the package graph will not resolve. The Mac runs iOS simulators only: no macOS desktop apps, no signing for App Store builds.

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

Input Schema

NameRequiredDescriptionDefault
idYes
modelNoattach only: an Android profile (default pixel_9), or an iPhone or iPad simulator name like "iPhone 17 Pro". Without it an iPhone is the iPhone 17 Pro, or the newest iPhone Pro its iOS version runs (iPhone 16 Pro on 18.6); a model that version does not run is an error listing the ones it does
actionYes
deviceIdNorelease, reconnect and restart
platformNoattach only
osVersionNoattach only: Android API level (35) or version (15), or iOS version like 26.5; a version the device hosts lack is an error that names the one they have

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

The annotations only say readOnlyHint=false and destructiveHint=true; the description goes well beyond them by disclosing freeze/thaw behavior, that an Android emulator keeps memory while an iPhone simulator shuts down and reopens the foreground app, that restart preserves apps and data, and that reconnect is automatic after an adb drop. The notable gap is 'release', whose consequences (does the lease or its data get destroyed?) are left unstated despite destructiveHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is a dense run-on wall covering adb bridging, psbx-ios path mapping, Capacitor/React Native node_modules syncing, and Mac limitations, most of which is peripheral to choosing and invoking this tool. Core actions are buried mid-paragraph while tangential build advice dominates the tail.

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?

For a six-parameter, five-action, destructive, no-output-schema tool, the description covers lifecycle behavior well but omits release semantics entirely and only partially describes what list returns. An agent could call attach or list competently, but would be guessing on release.

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 coverage is 67% and the schema already explains model defaults, osVersion formats, and the error behavior for unknown versions. The description restates attach blocking and adds path conventions for psbx-ios, but says nothing about deviceId (used by release, reconnect and restart) or about which platform values pair with which id forms. Baseline 3 is appropriate.

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 opening clause states a specific verb and resource: 'Lease a phone for the box, on separate hardware.' That is enough to separate it from sandbox_shot or sandbox_takeover, which are named as consumers of the phone's screen. However, the five actions in the enum are never enumerated as a set, and 'release' is never described at all, so the full scope of the tool must be inferred from the schema.

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?

There is real guidance embedded in the text: 'list does not wake the box... so check it before building for a phone', and attach is said to block until boot. But there is no guidance on when to choose restart versus reconnect versus release, and no statement of prerequisites or when not to lease a device. Usage context is present but scattered rather than actionable.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.