Skip to main content
Glama
droidpilot

droidpilot

by Mihirokte

pinch

Performs a two-finger zoom gesture centered at screenshot coordinates (x,y); set scale >1 to zoom in or <1 to zoom out on a connected Android device.

Instructions

Two-finger pinch centred at (x,y). Needs the scrcpy backend (see device_status).

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>",
      "scale": "<scale>"
    },
    "name": "pinch"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesx in screenshot space
yYesy in screenshot space
scaleYes>1 zoom in, <1 zoom out
duration_msNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add a real prerequisite (backend dependency) that the schema does not express, but it omits what happens if the backend is missing (error vs silent failure), whether the call blocks for duration_ms, and whether the gesture is atomic.

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 gesture definition followed by the prerequisite. No filler, no repetition of the tool name or schema fields.

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 described. For a low-complexity gesture tool the definition is nearly adequate, but it leaves the undocumented duration_ms parameter and the choice against the "gesture" sibling unaddressed.

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 75%, so the schema already explains x/y as screenshot-space coordinates and scale as >1 zoom in / <1 zoom out. The description adds only the centering semantics of (x,y); duration_ms remains undocumented in both places.

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 names a specific gesture ("Two-finger pinch") and its anchor point (x,y), which clearly identifies the operation. It does not explicitly differentiate itself from the broader sibling "gesture", which plausibly also performs multi-touch gestures, so sibling separation is only partial.

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 one concrete usage condition — the scrcpy backend must be active, with a pointer to device_status for checking — which is genuinely useful routing information. It says nothing about when to prefer pinch over "gesture" or "swipe", and no exclusions are stated.

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