Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

long_press

Press and hold at specified screen coordinates to open context menus, activate drag handles, or trigger selection in Android apps controlled by the AI agent.

Instructions

Press and hold (context menus, drag handles, selection).

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

Input Schema

NameRequiredDescriptionDefault
xYesx in screenshot space
yYesy in screenshot space
duration_msNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about how the hold duration affects the result, whether the press is released automatically, or what happens if duration_ms is too short. For an input-injection tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

A single short sentence that front-loads the action and then the use cases; there is no filler or redundancy.

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?

An output schema exists so return values need not be explained, and the gesture's purpose is covered. However, with no annotations and an undocumented duration parameter, the description is only minimally sufficient for a tool that injects input into a device.

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?

At 67% schema coverage, x and y are documented in the schema but duration_ms has only a default with no description. The description adds no meaning about timing or how duration_ms changes the gesture, so it does not compensate for the undocumented parameter.

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?

"Press and hold" is a specific verb+gesture pair, and the parenthetical examples (context menus, drag handles, selection) tell the agent what UI outcomes the gesture targets. It implicitly distinguishes itself from the tap/double_tap siblings by the hold semantics, though no sibling is named directly.

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 parenthetical lists the situations that motivate a long press, giving implied when-to-use guidance. There is no explicit statement of when not to use it or a named alternative (e.g., tap for a quick select), so routing is left to inference.

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