Skip to main content
Glama

tap

Simulate a touch at a specific screen position on a running Android or iOS device using 0.0–1.0 coordinate ratios.

Instructions

Tap at a position on a running device. Coordinates are ratios from 0.0 to 1.0 relative to the screen (0,0 = top-left, 1,1 = bottom-right).

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

Input Schema

NameRequiredDescriptionDefault
xYesX position as ratio (0.0 = left, 1.0 = right)
yYesY position as ratio (0.0 = top, 1.0 = bottom)
deviceYesDevice ID or name
platformYesTarget platform

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It reveals only that the device must be running and how coordinates are interpreted; it says nothing about what the tap does to app state, whether it blocks until the gesture completes, what happens on out-of-range or off-screen coordinates beyond the schema bounds, or what the result looks like.

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 short sentences, front-loaded with the action and followed by the one non-obvious detail (coordinate ratios). Nothing is wasted or redundant enough to impede scanning.

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

Completeness4/5

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

For a simple gesture tool with fully documented schema and no output schema, the description covers the essentials: the action, the target, and the coordinate convention. The main remaining gap is timing/blocking behavior and confirmation of success, which is modest for a tool this simple.

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 all four parameters are already documented. The description restates the ratio convention already present in the x/y property descriptions, adding emphasis but no new meaning about platform or device parameters.

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 ('Tap at a position on a running device') that naturally separates it from siblings like swipe or press_key. It stops short of explicitly naming or contrasting those alternatives, so it is clear but not fully differentiated.

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?

The phrase 'on a running device' implies the prerequisite that the target must already be started, which is useful context. However, there is no explicit when-to-use versus swipe/press_key/type_text guidance and no statement of when not to use it.

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