Skip to main content
Glama

press_key

Press hardware or system keys such as Home, Back, Enter, Power, or volume on a running Android or iOS device to navigate and control it.

Instructions

Press a hardware or system key on a running device. Android keys: home, back, enter, tab, delete, power, volume_up, volume_down, menu, app_switch. iOS keys: home, lock, volume_up, volume_down, siri.

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": {
      "platform": "<platform>",
      "device": "<device>",
      "key": "<key>"
    },
    "name": "press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesKey name (e.g. home, back, enter, volume_up)
deviceYesDevice ID or name
platformYesTarget platform

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It usefully discloses that only a fixed key set exists and that the set differs by platform, but says nothing about what happens on an invalid key, whether the press is synchronous, or what the call returns.

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?

Two short sentences, front-loaded with the action and scope, then the platform-specific key lists. Every clause carries information an agent needs; nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter action tool with full schema coverage and no output schema, the description is nearly sufficient: it defines the action, the platform constraint, and the valid key vocabulary. It could close the remaining gap by stating the prerequisite that the device be started and what an unsupported key does.

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 100%, so the baseline is 3. The description does add real value by enumerating the complete valid key values per platform, whereas the schema's key property only gives four examples, but it adds nothing about device or platform semantics beyond the enum already present.

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?

States a specific verb+resource ('Press a hardware or system key') and constrains it to a 'running device', which distinguishes it from coordinate-based input like tap/swipe and free-text entry. It stops short of naming how it differs from siblings such as type_text, which keeps it from a 5.

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 is only implied: the phrase 'on a running device' hints the device must already be booted, and the per-platform key lists imply the key must be valid for the selected platform. There is no explicit when-to-use/when-not, no statement about switching to tap or type_text for other input, and no error guidance for unsupported keys.

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