Skip to main content
Glama

input

Perform tap, double-tap, long-press, swipe, type text, or press keys on Android, iOS, desktop, or browser using coordinates, element text, resource IDs, or accessibility labels.

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.
Behavior2/5

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

No annotations are provided, so the description bears full responsibility. It only lists actions and parameter types, but does not disclose side effects (e.g., UI changes), platform-specific behavior (despite schema having a platform field), or what happens after execution. The 'hints' parameter is not described in the text.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short (two sentences) and front-loads the purpose. However, it is terse to the point of being cryptic for some entries (e.g., 'text: type text' is minimal). A bit more structure or examples would improve clarity without sacrificing conciseness.

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?

With 18 parameters and no output schema, the description is insufficient. It does not explain how to choose between parameters (e.g., when to use coords vs. text), platform-specific details, or the return format (hints). The tool requires more context to be used effectively by an agent.

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 94%, so the schema does most of the work. The description briefly summarizes parameter options (e.g., 'coords or text/id/label/index') but adds limited new meaning beyond what is in the schema. Baseline 3 is appropriate.

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 is for input actions and lists the supported actions (tap, double_tap, etc.). It distinguishes itself from sibling tools like 'ui' or 'screen' by focusing on input events. However, it does not explicitly differentiate from other tools on the server.

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?

The description provides no guidance on when to use this tool over alternatives. It does not mention prerequisites, exclusions, or examples of appropriate use cases. The agent must infer usage from the action list alone.

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