Skip to main content
Glama

phone_tap

Destructive

Tap a specific screen point using normalized x,y coordinates to activate an on-screen control or pixel-only target, then inspect the resulting screen state before retrying.

Instructions

Tap a pixel target using normalized x,y from 0–1, with (0,0) at top-left. Prefer phone_tap_element for an accessible control; use phone_screenshot to locate a pixel-only target. Requires phone_status.drivable=true and current screen evidence: a tap may send, buy, delete or toggle whatever occupies that point, so authorize its actual effect first. observe defaults on and returns the settled screen change. Read outcome/retry_safe; if delivery is unknown, inspect the current state or receipt before considering another tap.

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "phone_tap"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesHorizontal position, normalized 0–1 (0 = left edge, 1 = right edge).
yYesVertical position, normalized 0–1 (0 = top edge, 1 = bottom edge).
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`]."
  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: -"On by default: the result carries what the screen settled to — what\nchanged since your last look (`delta`), or the whole tree the first\ntime — so you rarely need `phone_elements` afterwards. The settled\nscreen is also captured but NOT sent: `phone_screenshot` returns it at\nonce if you need to see it. `false` skips both for the fastest bare\naction."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. Changed4 schema fields changedv0.22.4-glama.1
    • addedInput schema / properties / x / maximum
      Added value: +1
    • addedInput schema / properties / x / minimum
      Added value: +0
    • addedInput schema / properties / y / maximum
      Added value: +1
    • addedInput schema / properties / y / minimum
      Added value: +0
  5. First observedv0.21.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructive, open-world, non-idempotent, but the description goes beyond them by spelling out concrete consequences ('may send, buy, delete or toggle'), the observe default and settled-screen return, and crucially the retry-safety guidance (read outcome/retry_safe, verify before tapping again). These are behaviors annotations cannot express, and nothing here contradicts them.

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?

Front-loads the core action and coordinate convention, then alternatives, then prerequisites, then runtime behavior — a sensible order with no filler sentences. It is compressed to the point of multiple ideas per semicolon-joined clause, which costs a little readability.

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?

With no output schema, the description carries the burden of explaining the return ('observe defaults on and returns the settled screen change') and names outcome/retry_safe for interpreting results. Combined with the stated prerequisites, an agent has everything needed to call it and to decide whether to retry.

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 100%, so the schema already documents x, y, observe and instance fully, including edge meanings and the observe default. The description restates the normalized range and origin plus observe's default, adding little new meaning beyond the schema; a baseline 3 is appropriate.

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) and target type (pixel target via normalized x,y), including the coordinate origin convention. It explicitly distinguishes itself from phone_tap_element (accessible controls) and phone_screenshot (locating pixel-only targets), so an agent can route correctly without opening another 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?

Names both relevant alternatives and the conditions selecting them ('Prefer phone_tap_element for an accessible control; use phone_screenshot to locate a pixel-only target'). It also states the gating prerequisite (phone_status.drivable=true and current screen evidence) and an authorization requirement before invoking.

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