Skip to main content
Glama

Long press

long_press
Read-only

Long-press an Android screen at specified coordinates, using pixel or percentage positions for reliable UI automation.

Instructions

Long-press the screen at coordinates. Instead of pixels you can pass screen percentages (0-1): safer when estimating positions from a screenshot image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX in device pixels
yNoY in device pixels
xPctNoX as fraction of screen width (0-1)
yPctNoY as fraction of screen height (0-1)
serialNoDevice serial (defaults to session or the only device)
durationMsNoPress duration (default 1000ms — launchers ignore shorter holds)
Behavior3/5

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

The readOnlyHint annotation already signals safety; the description adds no additional behavioral traits beyond coordinate guidance. No contradiction with annotations is present.

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-loaded with the core action, and the second sentence adds a useful tip without redundancy.

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?

All six parameters are documented in the schema, the description covers coordinate alternatives, and no output schema is needed for a simple gesture. The tool is fully specified for its complexity.

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

Parameters4/5

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

The schema documents all parameters with full descriptions, and the description adds practical context for when to use percentage coordinates over pixel coordinates. This elevates the baseline.

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 uses a specific verb 'Long-press' plus resource 'screen' and coordinates, clearly distinguishing it from siblings like tap, swipe, and drag. It is concise and unambiguous.

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?

Provides clear advice on coordinate format (percentages vs pixels) with a rationale, but does not explicitly state when to choose this over alternative gestures. The usage is implied rather than contrasted with siblings.

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/dev-jackson/androidbuild-mcp'

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