Skip to main content
Glama

input

Perform touch gestures (tap, double-tap, long press, swipe) and text/keyboard inputs to automate Android and iOS devices.

Instructions

Input actions. tap/double_tap/long_press: coords or text/id/label/index. swipe: direction or coords. text: type text. key: press key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
xNoX coordinate
yNoY coordinate
x1NoStart X (for custom swipe)
y1NoStart Y (for custom swipe)
x2NoEnd X (for custom swipe)
y2NoEnd Y (for custom swipe)
textNoElement text (tap) or text to type (text action)
resourceIdNoFind element by resource ID (Android only)
labelNoiOS only: Accessibility label
indexNoTap element by index from ui_tree output (Android only)
keyNoKey name: BACK, HOME, ENTER, TAB, DELETE, etc.
directionNoSwipe direction
durationNoDuration in ms (long_press default: 1000, swipe default: 300)
intervalNoDelay between taps in ms for double_tap (default: 100)
targetPidNoDesktop only: PID of target process
hintsNoReturn hints about what changed after the action (default: true, set false to disable)
platformNoTarget platform. If not specified, uses the active target.
deviceIdNoTarget device ID for multi-device. If omitted, uses active device.
Behavior2/5

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

No annotations are provided, so the description bears full burden. It mentions actions and associated parameters but discloses no behavioral traits (e.g., side effects, permissions, error behavior). For a complex input tool, this is insufficient.

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?

Extremely concise: one sentence that front-loads the purpose and lists action-parameter mappings. No redundancy, though it sacrifices completeness for brevity.

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 19 parameters, 6 sibling tools, and no output schema, the description is too incomplete. It omits return values, platform-specific behavior (e.g., iOS vs Android), and when to use each action. Much context is missing.

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 95%, so baseline is 3. The description adds value by grouping parameters per action (e.g., 'coords or text/id/label/index' for tap), but does not cover all 19 parameters (e.g., hints, platform). It improves on the schema but not extensively.

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 handles input actions and lists specific actions (tap, double_tap, etc.), making it distinct from sibling tools like 'device' or 'ui'. However, it lacks a strong verb indicating what the tool does (e.g., 'performs' or 'simulates').

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'ui' or 'device'. The description merely lists actions without explaining contexts 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/AlexGladkov/claude-in-mobile'

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