Skip to main content
Glama

press

Press Android or iOS navigation and hardware keys such as home, back, recents, volume, or enter to control a real device screen during automated tasks.

Instructions

Press home, back, recents, notifications, lock, volume-up, volume-down, enter or hide-keyboard.

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": {
      "key": "<key>"
    },
    "name": "press"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/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 and does not meet it. It says nothing about whether a device must be connected/foregrounded, whether the press is blocking or has any delay, whether it changes persistent device state (e.g. lock), or what happens for an unsupported key. Only the action inventory is disclosed.

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?

A single short sentence with zero filler, and the operative verb is front-loaded. The only minor cost is that it reads as a fragment and mixes the action with the value list, but nothing is wasted.

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

Completeness2/5

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

For a device-input mutation tool with no annotations, no output schema, and no schema parameter documentation, the definition is thin. An agent still lacks the exact accepted value format, device-state preconditions, and success/failure behavior, which are the details that determine a correct call here.

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 0% with a single required `key` string, so the description must compensate — and it does partially by enumerating the accepted key names, which the schema does not. However, it does not state that these are the exact literal values, nor the casing/separator convention ("volume-up" with a hyphen vs "volume_up"), nor what happens for an invalid value.

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 gives a concrete verb ("Press") plus an enumerated set of target keys (home, back, recents, notifications, lock, volume-up, volume-down, enter, hide-keyboard), so an agent can immediately tell this is a hardware/navigation key press tool rather than a text-input or coordinate-tap tool. It does not explicitly name sibling tools to distinguish itself, but the key enumeration makes the scope unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this versus tap, type, shell, or swipe — all plausible siblings for input simulation. The key list implies the intended domain, but the agent is left to infer that coordinate tapping belongs to tap and text entry to type. No exclusions or prerequisites are given.

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