Skip to main content
Glama

iph_pinch

Performs two-finger pinch and rotation gestures on an iPhone screen to zoom, rotate maps, images, or web pages, centered on a selected element or coordinate.

Instructions

Two fingers on the screen: pinch in or out to zoom, turn to rotate (a map, an image, a web page). Give a direction, or a scale and/or a rotation. The fingers meet in the middle of the screen, or at at. screen_changed: false is a fair answer on a screen that does not zoom. Never retry one whose outcome is "unknown".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "iph_pinch"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoWhere the fingers meet: a selector, or "x,y" in points. Default: the middle of the screen. Selector: a plain string is an exact label (the name part of a "name, value" row also counts). Or combine terms: label="exact", label~="contains", label/regex/, role=button, id=<identifier or element id>, value~=…, within="<selector>", index=N. An object works too: {label, label_contains, label_regex, value, value_contains, role, id, id_contains, id_regex, within, index}. More than one match is an error that lists the candidates.
scaleNoEnd distance between the fingers over the start distance: above 1 spreads them (zoom in), below 1 pinches (zoom out).
rotateNoDegrees, positive clockwise.
directionNoin = scale 0.5, out = scale 2. Not together with scale.
duration_msNoHow long the fingers move (default 500, 100..10000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the focal-point default (middle of screen, or `at`), the existence of an outcome that can be 'unknown', and an explicit no-retry rule for those. It does not cover permissions or what a successful return looks like beyond `screen_changed`.

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?

Front-loaded with the gesture and its effect, then defaults, then outcome handling — every sentence carries information. The telegraphic phrasing ('The fingers meet in the middle of the screen, or at `at`') is terse but not wasteful.

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 gesture tool with no output schema, the description covers action, target, focal point, optional modifiers, and result handling, which is enough to invoke it correctly. Minor gaps: no mention of app/system scope or failure modes other than 'unknown'.

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 the schema already defines scale, rotate, direction, at, and duration_ms in detail, including the direction/scale exclusivity. The description only restates the 'direction, or scale and/or rotation' combination, adding little beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific gesture (two fingers pinch in/out, rotate) and its effect (zoom, rotate a map, image, web page). This clearly separates it from the single-finger siblings like iph_tap and iph_swipe without needing to name them.

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?

Explains when to use it (zooming/rotating a map, image, or web page) and how to express intent (direction, or scale and/or rotation). It also warns that `screen_changed: false` is a legitimate result on a non-zooming screen, which pre-empts a false-negative interpretation. It stops short of naming a sibling alternative for cases where pinching is impossible.

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