Skip to main content
Glama

phone_tap_label

Destructive

Taps an iPhone UI element by its exact visible label after checking a fresh element snapshot; returns an error and performs no action when zero or multiple matches exist.

Instructions

Tap an iPhone UI element by an EXACT visible label (requires drivable=true in phone_status). Reads a fresh phone_elements snapshot, requires exactly one match, then performs a snapshot-bound tap. Zero or multiple matches return an error and send NO action. For duplicate labels, choose by identifier/kind/state from phone_elements and call phone_tap_element with that response's snapshot.

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

Input Schema

NameRequiredDescriptionDefault
labelYesThe element's visible accessibility label, exactly as shown by `phone_elements` (e.g. "新备忘录", "Connect").
observeNoDefault true: reply with the settled screen (delta since your last look, or the full tree); false = bare action, fastest.
instanceNodaemon instance name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.29.2
    • removedInput schema / description
      Removed value: -"Parameters for [`phone_tap_label`]."
  2. Changed5 schema fields changedv0.29.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / instance / description
      Previous value: -"Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure."New value: +"daemon instance name"
    • removedInput schema / properties / observe / default
      Removed value: -null
    • changedInput schema / properties / observe / description
      Previous value: -"Default true: return what the screen settled to (as on phone_tap).\n`false` for the fastest bare action."New value: +"Default true: reply with the settled screen (delta since your last\nlook, or the full tree); false = bare action, fastest."
    • changedInput schema / properties / observe / type
      Previous value: -[
      -  "boolean",
      -  "null"
      -]New value: +"boolean"
  3. Changed1 schema field changedv0.27.3
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Installed local instance name, such as i13 or default. Omit to use the configured daemon. No fallback on failure.",
      +  "type": "string"
      +}
  4. First observedv0.21.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructive/non-idempotent, but the description adds material behavior beyond them: it reads a fresh phone_elements snapshot, binds the tap to that snapshot, and guarantees NO action is sent on ambiguity. That failure-mode disclosure is exactly the context an agent needs before invoking a destructive tap.

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?

Four sentences, front-loaded with the matching constraint before the fallback path. Every sentence carries either a prerequisite, a matching rule, or an alternative, with no filler.

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?

For a destructive, single-target tap with no output schema, the definition covers the precondition, the matching semantics, the ambiguity fallback, and the error behavior. An agent has everything needed to decide and invoke correctly.

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 baseline is 3, but the description adds a uniqueness requirement on `label` (must resolve to exactly one element) that the schema does not state. It also points at phone_elements as the source of valid label values, which the schema only hints at.

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?

States a specific verb (tap), resource (iPhone UI element), and the exact selection key (EXACT visible label). It implicitly separates itself from coordinate-based phone_tap and identifier-based phone_tap_element, which it names explicitly.

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?

Gives a hard prerequisite (drivable=true in phone_status), the routing rule for duplicates (use phone_tap_element with identifier/kind/state from phone_elements), and the failure contract (zero or multiple matches error out with no action). Nothing is left to inference.

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