Skip to main content
Glama
ghost-in-the-droid

ghost-in-the-droid

Official

press_key

Send platform key events to Android and iOS devices. Use Android KEYCODE_* names or iOS keys like HOME, BACK, and ENTER.

Instructions

Send a platform key event. Android accepts KEYCODE_* names, with the KEYCODE_ prefix added automatically. iOS supports WDA-backed HOME, ENTER/RETURN, and BACK/ESCAPE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYes
deviceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It adds useful context about how key names are transformed (KEYCODE_ prefix) and platform support, but it does not describe return values, error conditions (e.g., unsupported iOS keys), or side effects.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the core purpose, and uses clear structure to separate Android and iOS behavior. There is no redundant or irrelevant information.

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?

Given the two-parameter schema, no annotations, and presence of an output schema, the description is reasonably informative but missing some context: it does not mention what the tool returns, how errors are surfaced, or whether this tool should be preferred over the dedicated press_back/press_home siblings for specific use cases.

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 description coverage is 0%, so the description must compensate. It adds meaning for the 'key' parameter by listing accepted formats on Android and iOS, but it does not explain the 'device' parameter (e.g., device ID or name). Partial compensation is provided, but not complete.

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 description clearly states the tool sends a platform key event, with a specific verb and resource. It is distinguishable from sibling tools like press_back and press_home by covering generic keys, but it does not explicitly differentiate itself from those dedicated key-press tools.

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?

Usage context is implied by the platform-specific key names (Android KEYCODE_* and iOS HOME/ENTER/BACK), but there is no explicit guidance on when to use this tool versus the dedicated press_back/press_home alternatives. The description does not mention exclusions or alternative tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ghost-in-the-droid/android-agent'

If you have feedback or need assistance with the MCP directory API, please join our Discord server