Skip to main content
Glama

perform-w3c-gesture

Execute mobile touch gestures like swipe, tap, and pinch using the W3C Actions API for reliable app automation testing with Appium.

Instructions

Perform touch gestures using the W3C Actions API (more reliable than TouchAction API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionTypeYesThe type of gesture to perform
startXYesStarting X coordinate
startYYesStarting Y coordinate
endXNoEnding X coordinate (for swipe/dragAndDrop)
endYNoEnding Y coordinate (for swipe/dragAndDrop)
durationNoDuration of the gesture in milliseconds (default: 750)
secondPointStartXNoStarting X coordinate for second finger (pinch gestures only)
secondPointStartYNoStarting Y coordinate for second finger (pinch gestures only)
secondPointEndXNoEnding X coordinate for second finger (pinch gestures only)
secondPointEndYNoEnding Y coordinate for second finger (pinch gestures only)
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 burden of behavioral disclosure. While it mentions reliability compared to TouchAction API, it doesn't describe what the tool actually does behaviorally (e.g., whether it performs gestures on a specific element or screen coordinates, error handling, or what happens after execution). For a tool with 10 parameters and no annotations, this is a significant gap in transparency.

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?

The description is extremely concise—a single sentence that efficiently communicates the core purpose and key advantage. It's front-loaded with the main action and includes no unnecessary details, making it easy to parse quickly.

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

Completeness2/5

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

Given the tool's complexity (10 parameters, no annotations, no output schema), the description is incomplete. It doesn't explain what the tool returns, how gestures are executed (e.g., on what context or element), error conditions, or dependencies. For a gesture-performing tool with many parameters, more context is needed to guide effective use.

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 description coverage is 100%, meaning all parameters are documented in the input schema. The description doesn't add any parameter-specific information beyond what's in the schema (e.g., it doesn't explain coordinate systems, default values beyond duration, or gesture specifics). With high schema coverage, the baseline score of 3 is appropriate as the description doesn't compensate but also doesn't detract.

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 clearly states the tool's purpose: 'Perform touch gestures using the W3C Actions API.' It specifies the action type (touch gestures) and the implementation method (W3C Actions API). However, it doesn't explicitly differentiate from sibling tools like 'swipe', 'long-press', or 'tap-element', which appear to be similar gesture tools.

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 description provides some usage guidance by mentioning that the W3C Actions API is 'more reliable than TouchAction API,' which implies this tool should be preferred over alternatives using the older API. However, it doesn't explicitly state when to use this tool versus specific sibling tools like 'swipe' or 'tap-element', nor does it mention any prerequisites or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rahulec08/appium-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server