Skip to main content
Glama

interact_with_ui

Perform UI interactions (tap, swipe, text input) on Android and iOS apps. Target elements by ID/text or coordinates. Automate mobile app testing with precise UI actions.

Instructions

Perform UI interactions like tap, swipe, or text input. Can target elements by ID/text or by coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
platformYesTarget platform
actionYesType of interaction to perform
elementNoElement ID, resource ID, or text to interact with
xNoX coordinate for coordinate-based interaction
yNoY coordinate for coordinate-based interaction
textNoText to input (for input_text action)
directionNoSwipe direction (for swipe action)
durationMsNoDuration in milliseconds (for long_press and swipe, default: 300)
deviceIdNoDevice ID or name (optional)
Behavior3/5

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

No annotations are provided, so description must carry full burden. It discloses interaction types and targeting methods but does not cover failure behavior, timeouts, permissions, or side effects like navigation.

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?

Two concise sentences cover purpose and targeting method. No redundant information, though could be slightly more structured.

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

Completeness3/5

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

Given 9 parameters and no output schema, description lacks details on return values or error conditions. However, basic purpose and parameter mapping are clear from schema due to 100% coverage.

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 100% and description adds no new meaning beyond what schema already provides (e.g., 'by coordinates' is already in x/y descriptions). Baseline of 3 is appropriate.

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?

Description clearly states the tool performs UI interactions (tap, swipe, text input) and targets elements by ID/text or coordinates. It distinguishes from siblings like get_ui_context and inspect_app_state, which are for reading state rather than action.

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?

Description implies usage for performing actions on UI but does not provide explicit when-to-use or when-not-to-use guidance, nor does it mention alternatives among 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/abd3lraouf/specter-mcp'

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