Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ANDROID_HOMENoLocation of the Android SDK, used to find emulators. Defaults to ~/Library/Android/sdk.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Drive games and apps on virtual devices. Call devices first, then screenshot to see the screen; tap and swipe take positions as fractions (0..1) of that screenshot. System popups: ui_elements and tap_element.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
devicesA

List the virtual devices Virtual Device MCP can drive: Android emulators (AVDs), iOS / tvOS / visionOS simulators and this Mac. Real phones are never listed.

device_startA

Boot an emulator or simulator and wait until it is ready. Simulators boot without a window.

device_stopA

Shut an emulator or simulator down (and stop Virtual Device MCP's agent on it).

screenshotA

Take a screenshot of the device (on "mac": of the app's window). Positions for tap and swipe are fractions of this image.

tapA

Touch the screen at a position (a click on "mac", a look-and-pinch on Apple Vision Pro, sent through the DeviceHub window). Works on anything in front: the game, an ad, a system popup. Not available on Apple TV, which has no touch screen: use key there.

swipeB

Drag one finger from one position to another (a mouse drag on "mac").

pinchA

A two-finger gesture: spread the fingers apart (scale above 1, zooms in), pinch them together (scale below 1) and / or turn them (rotateDeg). Android emulators: around any position. iOS simulators: around the centre of the screen only.

keyA

Press a key or hardware button. Android: up, down, left, right, select, enter, escape, back, home, menu, space, letters, digits. Apple TV (the remote): up, down, left, right, select, menu, playpause, home. iOS: home. Apple Vision Pro: up, down, left, right. mac: arrows, enter, escape, space, tab, letters, digits.

gamepadA

Press buttons on a virtual game controller connected to a simulator (iOS, tvOS, visionOS). For games that take a controller. Buttons: up, down, left, right (d-pad), a, b, x, y, menu, options, l1, r1, l2, r2. Several buttons are pressed one after another.

type_textB

Type text into the focused text field.

ui_elementsA

List the labelled native elements on screen with their positions: system popups (permission requests, alerts), native dialogs and ads. A game that draws its own UI shows nothing here: use screenshot for it.

tap_elementA

Tap a native element by its label, for example "Allow" on a permission popup. Looks in the system UI first, then in the app.

app_installB

Install a build on the device: an .apk on Android, an .app bundle built for the simulator on Apple platforms.

app_launchC

Start an app (on "mac": a bundle identifier or the path of an .app).

app_stopC

Force an app to quit.

app_resetA

Put an app back in first-launch state: its saved data and, on simulators, its permission answers are removed, so first-run popups show again. This deletes the app's data on that device.

logsA

Read recent log lines of the device, or of one app. Use filter to keep only matching lines, for example "exception|error".

record_startA

Start recording a video of the device screen (on "mac": of the app's window where it is now). One recording per device; finish it with record_stop.

record_stopA

Stop the recording started by record_start and return the path of the finished video.

playtestA

Run a standard smoke test of an app in one call and return a report with screenshots: (optionally install and) reset it to first-launch state, launch it, press through system popups, run your steps, send it to the background and bring it back, then scan its log for exceptions and crashes. Steps are other tools' calls, for example {"tool":"tap","x":0.5,"y":0.87} or {"tool":"wait","ms":3000}; a screenshot is taken after each.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 20 tools

Disambiguation5/5

Each tool targets a distinct resource+action: device lifecycle (devices, device_start, device_stop), app lifecycle (app_install, app_launch, app_stop, app_reset), input primitives (tap, swipe, pinch, key, gamepad, type_text), and observation (screenshot, ui_elements, logs). The near-pairs are clearly separated by descriptions: tap (coordinates) vs tap_element (label), ui_elements (native labels) vs screenshot (rendered pixels), and playtest (one-call orchestration) vs issuing individual tool calls. No two tools appear to do the same thing.

Naming Consistency3/5

Compound tools follow a readable resource_action pattern (app_install, app_reset, device_start, record_stop, tap_element), but a large share of the surface uses bare single words (tap, swipe, pinch, key, gamepad, screenshot, playtest, logs) and even plural nouns (devices, logs, ui_elements) alongside singular action names (device_start). It is still readable and each name hints at its purpose, but there is no single predictable convention across the set.

Tool Count4/5

Twenty tools is slightly above the ideal band but each one maps to a genuinely distinct device capability: lifecycle for devices and apps, six input primitives that differ by platform/gesture type, three observation tools, two recording tools, and one composite playtest. Nothing looks redundant or padded, though the surface could be trimmed by folding some primitives together (e.g. key vs gamepad).

Completeness4/5

Coverage is strong for driving and testing an app on a virtual device: discover/boot/shutdown devices, install/launch/stop/reset apps, all major input modalities, screenshots, native UI inspection, logs, screen recording, and an end-to-end smoke-test helper. Gaps remain at the edges — no uninstall, no device/AVD creation, no orientation or rotation control, no clipboard/location/network-condition tools — but agents can work around most of these.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues