MCP Server for Android device control via ADB and scrcpy
Server has 25 tools with consistent naming (verb_noun pattern) and basic descriptions. All tools are explicitly registered with @mcp.tool() decorators and have input schemas visible in main.py. However, descriptions are minimal (10-50 chars, well below the 194-char baseline), parameter descriptions lack detail about constraints/formats, and output schemas are not documented. Error handling is absent, no guidance on recovery, retryable vs fatal errors, or validation failures. Security concerns: adb_shell and adb_exec_out accept arbitrary commands with no sanitization warnings. File operations (adb_pull_file, adb_push_file) lack path traversal validation hints.
Get detailed information about a specific device.
Dump the UI hierarchy tree from the device.
Execute a command via adb exec-out (for binary output).
Find UI elements by their attributes using uiautomator.
Get battery status of the device.
Get system properties from the device.
Get the screen resolution of the device.
Descriptions are critically short (10-50 chars vs 194-char baseline). LLMs cannot determine when to select tools or understand prerequisites. E.g., 'List all connected Android devices' lacks context on when to call it vs adb_device_info.
Parameter descriptions are missing or generic. E.g., adb_shell 'command' param has no guidance on escaping, injection risks, or timeout behavior. adb_find_element has 8 optional params with no explanation of mutual exclusivity or filtering logic.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 53 | 2026-07-28+ | v2 |
Input text on the device.
Install an APK on the device.
List all connected Android devices.
List all installed packages on the device.
Press a key event.
Pull a file from the device to local filesystem.
Push a file from local filesystem to the device.
Capture screenshot using exec-out and save to local file.
Execute a shell command on the device.
Start an application on the device.
Force stop an application on the device.
Simulate a swipe gesture.
Simulate a tap at the specified coordinates.
Uninstall an application from the device.
Send control command to scrcpy.
Take a screenshot from the device.
Start screen mirroring via scrcpy.
Stop screen mirroring.
No output schemas documented. LLMs cannot plan downstream calls or extract required fields. E.g., adb_list_devices returns a list but structure is unknown, does it include serial, model, status? adb_find_element returns elements but field names are undocumented.
Command injection and path traversal risks. adb_shell and adb_exec_out accept arbitrary strings with no sanitization hints. adb_pull_file and adb_push_file lack warnings about path traversal (e.g., '../../../etc/passwd'). No validation guidance in descriptions.
No error handling or recovery guidance. Tools lack descriptions of failure modes, retryable errors, or next steps. E.g., adb_install_app may fail if APK is invalid, device is offline, or storage is full, but no guidance on how to recover or what the LLM should do next.