Skip to main content
Glama

press_button

Destructive

Press a hardware button once on a connected iPhone or iPad to return home, change volume by one step, or trigger the action or camera button.

Instructions

Press a hardware button once. "home" goes to the home screen without quitting the app (terminate_app quits it). "volumeUp" and "volumeDown" move one step; to reach a level use set_volume. "action" and "camera" run whatever the phone has them set to, and fail on a device without that button. Doesn't report what the press did; check with screenshot.

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

Input Schema

NameRequiredDescriptionDefault
nameYesButton to press
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / name / description
      Added value: +"Button to press"
  2. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / name / enum
      Previous value: -[
      -  "home",
      -  "volumeUp",
      -  "volumeDown"
      -]New value: +[
      +  "home",
      +  "volumeUp",
      +  "volumeDown",
      +  "action",
      +  "camera"
      +]
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, potentially destructive behavior, and the description adds what they cannot: the press reports nothing about its effect, action/camera fail on devices lacking those buttons, and follow-up verification is via screenshot. It could go slightly further on why destructiveHint is set (e.g., that pressing can change device state/app flow), but the added behavioral context is substantial.

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?

Front-loaded primary action followed by tightly packed per-value semantics and alternatives; every clause carries information and nothing is repeated from the schema.

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

Completeness5/5

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

There is no output schema, and the description explicitly closes that gap by stating the tool reports nothing and pointing to screenshot for verification. For a two-parameter tool with full schema coverage, nothing an agent needs is missing.

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

Parameters4/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, but the description adds real meaning per enum value: home preserves the app, volume presses move exactly one step, and action/camera invoke whatever the phone has bound. The device parameter is left to the schema, which already documents the fallback chain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Press a hardware button once") and then differentiates each button value against the siblings it could be confused with (home vs. terminate_app, volumeUp/volumeDown vs. set_volume). An agent can pick this tool over its siblings without opening any schema.

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

Usage Guidelines5/5

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

It explicitly routes the agent: use terminate_app to quit, use set_volume to reach a level, and use screenshot afterwards to verify. The when-to-use-which alternative conditions are stated, not implied.

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