Skip to main content
Glama

mumu_pinch

Generates two-finger pinch/zoom gesture events around specified screen coordinates for Android emulator automation; verify multi-touch delivery first, since the host input bridge may drop multi-slot events.

Instructions

Two-finger pinch or zoom around (cx, cy), written as MT-protocol-B events.

Spans start to end half-distance: end > start zooms in, end < start zooms out. axis is x or y.

Platform limit, measured: on MuMu 6.8.x the host input bridge forwards single-pointer events and drops multi-slot ones, so this sequence reaches the kernel but not the app. The helper emits a correct gesture and will work unchanged on a build whose bridge forwards multi-touch; on this build, zoom or pan through the UI's own controls instead. Verify with mumu_touch_device and a before/after mumu_ui_dump before relying on it.

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

Input Schema

NameRequiredDescriptionDefault
cxNo
cyNo
endNo
axisNox
startNo
stepsNo
vmindexNo
duration_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the measured platform limitation, that the sequence "reaches the kernel but not the app," and that the helper is correct for future builds. It does not say whether the call blocks, what duration_ms/steps do at runtime, or what a successful response looks like, leaving small gaps.

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 verb and resource, then parameter semantics, then the caveat — a logical progression with no filler sentences. The bolded platform-limit block is long but the content is high-value rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, zero-annotation, mutation-style input tool, the description gives the agent what it most needs: what the gesture does, how the directional parameters work, and a decisive warning that it will not work on the target build. The remaining undocumented knobs (steps, duration_ms, vmindex) are tuning values with sensible defaults rather than blockers.

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 0%, so the description must compensate. It explains cx/cy as the pinch center, defines start/end as half-distance with directionality (end > start zooms in, end < start zooms out), and constrains axis to x or y — but steps, duration_ms, and vmindex are left entirely undocumented.

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 verb and resource — "Two-finger pinch or zoom around (cx, cy)" — plus the wire format (MT-protocol-B events). This is distinct from the sibling touch primitive mumu_touch_device, which is named only as a verification aid, so an agent can tell the two apart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when NOT to use it: on MuMu 6.8.x the host bridge drops multi-slot events, so the agent should "zoom or pan through the UI's own controls instead." It also prescribes a verification procedure (mumu_touch_device plus before/after mumu_ui_dump), which is unusually actionable guidance.

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

Deploy Server

Other Tools