Skip to main content
Glama

press_key

Simulates Android hardware or keyboard key presses, including back, home, delete, and enter, to submit search or chat inputs and navigate device screens.

Instructions

Press a key: back, home, recent, delete, tab, volume_up, volume_down, power, or any KEYCODE_ name. "enter" (also "search"/"go"/"send"/"done") presses the on-screen keyboard's action key when the keyboard is shown, which is what submits most search boxes and chat inputs.

Input Schema

NameRequiredDescriptionDefault
keyYes
max_wait_msNo
observe_afterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it says nothing about side effects, whether pressing power/delete is disruptive, or what the observable result is. The only behavioral insight is the keyboard-action-key explanation, leaving the mutation/safety profile and the effect of the wait/observe parameters undisclosed.

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

Conciseness4/5

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

Two tight sentences with the core key list front-loaded and the special-case explanation following. The parenthetical alternatives are slightly dense but each adds real disambiguation value.

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?

Key value semantics are covered thoroughly and an output schema exists so return values needn't be described. But with no annotations and two unexplained optional parameters, the definition doesn't fully arm an agent to invoke it with non-default wait/observe behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, and the description only adds meaning for 'key'. The optional max_wait_ms and observe_after parameters are completely undocumented in both schema and description, so an agent must guess at their units and effect.

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 key') and enumerates the accepted key names, including the special 'enter'/'search'/'go' family, so an agent knows exactly what the tool targets. It stops short of differentiating from siblings like type_text or tap, which is why it falls short of 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?

Provides a useful conditional rule for the 'enter' variant ('when the keyboard is shown, which submits most search boxes and chat inputs'), which is genuine when-to-use guidance. However, it gives no guidance on when to choose press_key over type_text, tap, or tap_text, nor any prerequisites or exclusions.

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