Skip to main content
Glama

glass_gesture

Simulate multi-touch gestures like pinch, rotate, and swipe on a screen using 2-10 pointers with straight from‑to segments. Supports held fingers and adjustable duration; returns an error if the backend lacks multi-touch support.

Instructions

Perform a multi-touch gesture: 2–10 pointers, each a straight from→to segment in window-relative px, all down together at t=0 and up at duration_ms. Pinch = two pointers toward/apart; rotate = two on an arc; two-finger swipe = two parallel segments; a from==to pointer is held. Multi-touch isn't available on every backend — it returns a clear Unsupported error where the active backend can't do it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pointersYes2–10 simultaneous pointers; each a straight from→to segment. Pinch = two pointers moving toward/apart; rotate = two on an arc; two-finger swipe = two parallel segments.
duration_msNoSpan the gesture over this many ms (all pointers down at 0, up at duration). Default 250.
Behavior4/5

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

Discloses key behavioral details: all pointers down at t=0 and up at duration_ms, from==to means held, common patterns like pinch, rotate, swipe. Warns about unsupported backends. Without annotations, this is reasonably transparent.

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 sentences front-load essential info: tool purpose, parameters, usage patterns, and limitation. Every sentence earns its place with zero redundancy.

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?

Given no output schema and complex input, description covers the main points: gesture mechanics, parameter usage, and backend limitation. Lacks detail on return value but acceptable for this tool.

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

Parameters5/5

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

Adds significant meaning beyond schema by explaining how to achieve common gestures (pinch, rotate, two-finger swipe) and clarifying default duration and pointer behavior. Schema has 100% coverage, but description enriches it.

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?

The description explicitly states it performs multi-touch gestures with 2-10 pointers, each a straight from→to segment. It differentiates from siblings like glass_click and glass_drag by focusing on multi-touch patterns.

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?

Provides clear context on when to use (multi-touch gestures) and notes backend limitation: returns Unsupported error if backend lacks multi-touch. Does not explicitly list alternative tools but context is sufficient.

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/fixed-width/glass'

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