Skip to main content
Glama

tap_text

Inspect the current screen for visible text, match it by exact or contains criteria, and tap the intended occurrence to target UI elements by on-screen label.

Instructions

Find unique visible text from a fresh inspection and tap it. Choose a more specific match or an occurrence if the text appears more than once.

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

Input Schema

NameRequiredDescriptionDefault
matchYes
sourceNo
device_idNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already disclose that this is a non-read-only, open-world, non-idempotent but non-destructive operation. The description adds meaningful context with 'fresh inspection' and duplicate-text handling, but it omits what happens when the text is not found or when multiple matches remain ambiguous.

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 tightly written sentences with the primary action front-loaded. The duplicate-text guidance follows immediately and no sentence is wasted.

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

Completeness3/5

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

The description covers the core action and ambiguity strategy for a tool with a nested match object and no output schema. It is still incomplete for a 4-parameter tool with 0% schema coverage, especially for source selection, timeout behavior, and failure modes.

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 carry the burden. It explains match specificity and occurrence handling for the nested match object, but says nothing about source, device_id, timeout_ms, or case_sensitive.

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: find visible text and tap it. It is clearly differentiated from text-entry tools like type_text, but it does not explicitly contrast itself with the generic tap or double_tap siblings.

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?

It gives useful guidance for duplicate text: choose a more specific match or an occurrence. However, it does not say when to use tap_text instead of tap, double_tap, or other tap variants, leaving that choice to inference.

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