Skip to main content
Glama

pinch

Perform a two-finger pinch, spread, or rotate gesture on Android emulators and iOS simulators to test zoom and rotation; Android supports a custom center, iOS uses screen center.

Instructions

A two-finger gesture: spread the fingers apart (scale above 1, zooms in), pinch them together (scale below 1) and / or turn them (rotateDeg). Android emulators: around any position. iOS simulators: around the centre of the screen only.

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

Input Schema

NameRequiredDescriptionDefault
xNoCentre, horizontal (default 0.5), as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge
yNoCentre, vertical (default 0.5), as a fraction of the screenshot: 0 is the left / top edge, 1 the right / bottom edge
appNoApp id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there)
scaleNoHow far the fingers end from each other compared to the start: 2 spreads to double, 0.5 pinches to half. Default 1
deviceYesDevice id (or exact name) from the devices tool
rotateDegNoTurn the fingers by this many degrees, clockwise. Default 0
durationMsNoHow long the gesture takes. Default 500
screenshotAfterMsNoIf set, wait this many milliseconds after the action and return a screenshot too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

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 useful work by disclosing the iOS centre-only limitation and the zoom direction semantics, but it says nothing about preconditions (device started, app launched), failure modes, or what a call without screenshotAfterMs returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact sentences that front-load the gesture definition and follow with the platform caveat; nothing is padded. Minor overlap with scale's schema text, but the restatement aids quick scanning.

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 an 8-parameter, annotation-free gesture tool with no output schema, the description covers gesture semantics and platform targeting but leaves the agent guessing about prerequisites and returns. Adequate but with real gaps for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description earns above that by mapping scale values to real effects ('zooms in' when above 1) and by constraining where x/y can meaningfully be set on iOS.

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 ('a two-finger gesture') and unpacks the two sub-modes (spread = scale > 1, pinch = scale < 1, plus rotation via rotateDeg). An agent can distinguish this from tap/swipe from the text alone, though no sibling is named explicitly.

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 states the key platform constraint — 'Android emulators: around any position. iOS simulators: around the centre of the screen only' — which directly affects how x/y should be chosen. However, it never says when to reach for this instead of swipe or tap, or that a device/app must already be running.

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