Skip to main content
Glama

long_press

Hold and release a touch at a specified on-screen target for a set duration to perform long-press gestures; anchor the target using a screenshot or element list first.

Instructions

Hold and release a touch at one target for the requested duration. Anchor the target to take_screenshot or list_elements before sending it.

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": "long_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
device_idNo
timeout_msNo
duration_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds that the gesture has a hold duration and requires a pre-anchored target, but says nothing about blocking behavior, failure modes, or what happens if the target is stale.

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 with the core action first and the prerequisite second; no filler, no repetition of the tool name.

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 4-parameter mutation tool with no output schema and zero schema descriptions, the description is too thin: half the parameters and the polymorphic target union go undocumented. The anchoring guidance helps, but an agent still cannot confidently supply device_id, timeout_ms, or choose between the two target forms.

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% across 4 parameters, so the description carries the burden and largely fails: it references only 'target' and implicitly 'duration', leaving device_id and timeout_ms unexplained. It also does not clarify the two mutually exclusive target shapes (ref+snapshot_id vs. x/y+coordinate_space+observation_id), which is the hardest part of the schema.

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 uses a specific verb phrase ('Hold and release a touch at one target') and names the resource, making it distinguishable from tap-like siblings such as double_tap or press_button. It does not explicitly contrast itself with those siblings, which keeps it just short of a 5.

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?

It gives an actionable precondition: anchor the target to take_screenshot or list_elements before sending it, naming two concrete alternatives for obtaining a target. It stops short of stating when-not to use this tool (e.g., use double_tap for quick taps) or what to do if anchoring fails.

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