Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADB_PATHNoOverride path to `adb` (default: `bin/platform-tools/adb[.exe]`, then `PATH`). Alias: ADB_EXECUTABLE.
ADB_SERIALNoDefault device serial when tools omit `serial`. Alias of ANDROID_SERIAL.
ADB_EXECUTABLENoOverride path to `adb` (default: `bin/platform-tools/adb[.exe]`, then `PATH`). Alias of ADB_PATH.
ANDROID_SERIALNoDefault device serial when tools omit `serial`. Alias: ADB_SERIAL.

Instructions

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

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
adb_versionA

Return the resolved ADB binary path and adb version output.

list_devicesA

List connected Android devices/emulators (adb devices -l).

device_infoB

Hardware/software summary for a device (model, Android version, battery, screen).

shellC

Run a shell command on the device (adb shell …).

getpropA

Read one Android system property, or all properties if name is omitted.

install_apkC

Install an APK from the host filesystem onto the device.

uninstall_appC

Uninstall an app by package name.

push_fileC

Copy a file or directory from the host to the device.

pull_fileC

Copy a file or directory from the device to the host.

screenshotB

Capture the current screen as PNG. Optionally save to disk and/or return base64.

logcatC

Dump recent logcat lines. Optional filter_spec e.g. 'ActivityManager:I *:S'.

input_tapC

Tap screen coordinates (pixels).

input_swipeC

Swipe from (x1,y1) to (x2,y2) over duration_ms.

input_textB

Type text into the focused field (best-effort escaping for ADB input text).

input_keyeventB

Send a keyevent (name or code), e.g. KEYCODE_HOME, KEYCODE_BACK, 3, 4.

start_activityC

Start an activity by component, e.g. com.example/.MainActivity.

force_stopC

Force-stop an application by package name.

list_packagesC

List installed packages, optionally third-party only or filtered.

connectC

Connect to a device over TCP/IP, e.g. 192.168.1.10:5555.

disconnectA

Disconnect a TCP/IP device, or all if host_port is omitted.

rebootC

Reboot the device. Optional mode: bootloader, recovery, sideload.

batteryB

Return parsed dumpsys battery fields (level, status, temperature, …).

screen_metricsB

Return wm size and wm density for the device.

port_forwardC

Forward a host port to a device port, e.g. local=tcp:8080 remote=tcp:8080.

port_forward_removeC

Remove one port forward, or all if local is omitted.

port_reverseC

Reverse-forward a device port to a host port.

port_reverse_removeC

Remove one reverse forward, or all if remote is omitted.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3/5.0

Scored across 27 tools

Disambiguation4/5

Most tools target a distinct resource or action, and the port_forward/port_reverse families are cleanly split into add/remove pairs. The main fuzzy spots are device_info, which claims to summarize battery and screen even though dedicated `battery` and `screen_metrics` tools exist, and `shell`, which subsumes getprop and the input_* tools. Boundaries are still clear enough from descriptions that misselection is unlikely.

Naming Consistency3/5

Everything is snake_case, which keeps it readable, but the convention is mixed: verb_noun forms (install_apk, push_file, list_devices, start_activity) coexist with bare noun/verb names (shell, screenshot, logcat, battery, getprop, reboot, connect). The noun_resource_verb style of port_forward_remove also deviates from the verb-first pattern. Predictable enough to navigate, but not a single consistent scheme.

Tool Count3/5

27 tools is heavy for the stated guidance band, driven by ADB's genuinely broad surface. Several clusters could be consolidated (four input_* tools, four port forward/reverse tools, three device-status tools like battery/screen_metrics/device_info), which would reduce count without losing capability.

Completeness4/5

Core lifecycle is well covered: device discovery and connection, install/uninstall, file transfer, shell, input injection, activity launching, logging, and port forwarding. Notable gaps are UI hierarchy dumping (uiautomator), generic dumpsys/settings manipulation, and app data clearing, though the `shell` tool lets an agent work around most of these.

Maintenance

ActivityMaintained
ResponsivenessOutdated data