Skip to main content
Glama

press_key

Send a supported key or modifier chord to the focused app on a selected iOS device, then observe the screen to verify how the app handled it.

Instructions

Send a supported key or modifier chord to the focused app on the selected device. Observe the screen afterward to check how the app handled it.

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_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
device_idNo
modifiersNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare that this is a non-read-only, non-destructive, open-world, non-idempotent action. The description adds that input goes to the focused app on the selected device and that the result must be verified visually, which is meaningful context beyond the annotations. It still omits failure behavior, such as what happens when the app does not accept the key, and whether the call throws or returns a status.

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 sentences, no filler, with the primary action stated first and the verification advice appended. Every clause earns its place.

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 four-parameter interaction tool with no output schema, the description properly covers what the tool does and how to confirm the result. The main remaining gap is the unmentioned timeout_ms behavior and error semantics, but the visual-verification instruction largely compensates.

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%, with four parameters, so the description should carry more weight. It does clarify the core concept by explaining that key and modifiers compose a chord, and 'selected device' hints at device_id. It says nothing about timeout_ms or the effects of combining modifiers with keys like select_all, leaving the non-enum parameter undocumented.

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 specific verb and resource, 'send a supported key or modifier chord,' plus the target, 'the focused app on the selected device.' It clearly distinguishes itself from pointer-style siblings like double_tap or drag, but it does not explicitly differentiate from press_button, which an agent could reasonably confuse with it.

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?

The phrase 'Observe the screen afterward to check how the app handled it' gives useful follow-up workflow guidance, implying this is a fire-and-verify action. However, it gives no comparison against alternatives, such as when to use press_button or fill, and no guidance on when a chord should replace a sequence of individual presses.

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