Skip to main content
Glama

tap

Select a single point or UI element on the chosen device using screenshot coordinates or an element snapshot reference to trigger the intended interaction.

Instructions

Tap one point or element on the selected device. Use a current take_screenshot observation for coordinates or a list_elements snapshot for a reference.

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

Input Schema

NameRequiredDescriptionDefault
targetYes
device_idNo
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/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 safety profile is covered. The description adds the useful behavioral constraint that the observation backing the target must be current, implying stale ids fail. It says nothing about what a tap can trigger, timeout behavior, or error conditions for a tool whose annotations mark it non-idempotent and open-world.

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 sentences, no filler. The action is front-loaded and the prerequisite guidance follows immediately, with each sentence earning its place.

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?

For a three-parameter tool with a nested oneOf target, no output schema, and zero schema descriptions, the description covers the most important ambiguity (where targets come from) but leaves the secondary parameters and the coordinate_space requirement unexplained. Adequate, but with clear remaining gaps.

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 description coverage is 0%, so the description carries the burden, and it does partially compensate by linking the two oneOf branches to their source tools (screenshot coordinates vs. element snapshot reference). However, it never mentions device_id, timeout_ms, the coordinate_space enum value, or the x/y bounds, all of which remain unexplained.

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?

States a specific verb and resource: "Tap one point or element on the selected device." The dual target (coordinate point vs. element reference) is named, which an agent can map to the schema's oneOf. It stops short of explicitly distinguishing itself from close siblings such as double_tap, long_press, and tap_text, so the agent must infer the boundary from names alone.

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

Usage Guidelines4/5

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

Gives concrete prerequisite routing: use take_screenshot for coordinates and list_elements for a reference, and the word "current" signals that an observation must be fresh. It does not state when NOT to use this tool (e.g., text-based vs. gesture-based alternatives), so exclusions are missing.

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