Skip to main content
Glama

press_button

Sends a named hardware or system button action (home, lock, volume, Siri, Apple Pay) to a selected device, including protected buttons that may need human handling.

Instructions

Send a named hardware or system button action supported by the selected device. The device may require a person to handle a protected button.

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

Input Schema

NameRequiredDescriptionDefault
buttonYes
device_idNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so the mutation profile is covered. The description adds genuinely new context by warning that some buttons are protected and may need a person to intervene. It does not describe what happens on timeout or failure, which matters for a non-idempotent action.

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 short sentences with no filler; the core action is stated first and the human-intervention caveat follows. Nothing is padded, though the second sentence could be tied more concretely to the fallback tool.

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 non-idempotent, open-world mutation with three parameters and no output schema, the definition omits the semantics of device_id and timeout_ms and gives no routing to request_human_action. Annotations carry the safety profile, but the parameter and fallback gaps leave the definition short of what an agent needs to call it reliably.

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%, so the description must compensate for device_id and timeout_ms, and it does not mention either. The button parameter's enum is fully enumerated in the schema, and the phrase 'named ... button' adds nothing beyond it. The meaning of device_id and timeout_ms is left entirely 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 states a specific verb and resource ('Send a named hardware or system button action') and scopes it to 'the selected device.' However, it never distinguishes this from sibling tools like press_key, long_press, or double_tap, so an agent must infer that this is for hardware/system buttons rather than keyboard keys.

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 explicit when-to-use or when-not-to-use guidance and no named alternative. The clause 'The device may require a person to handle a protected button' hints at a human-in-the-loop fallback but never points to request_human_action, which is present among the siblings, leaving the agent to guess.

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