Skip to main content
Glama
1999AZZAR

scrcpy-mcp

by 1999AZZAR

ui_find_element

Read-only

Locate UI elements on an Android screen by searching text, resource ID, class name, or content description to retrieve matching tap coordinates for automated interaction.

Instructions

Find UI elements on screen by text, resource ID, class name, or content description. Returns matching elements with their tap coordinates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText content to search for
serialNoDevice serial number
classNameNoClass name to match exactly (e.g., 'android.widget.Button')
exactMatchNoIf true, text and contentDesc require exact matches
resourceIdNoResource ID to match exactly (e.g., 'com.app:id/button')
contentDescNoContent description to search for

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYesNumber of matching elements
elementsYesMatching UI elements with tap coordinates
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the agent knows this is a safe read operation. The description adds that it returns tap coordinates, which is useful behavioral context. However, it doesn't disclose details like whether partial matches are default behavior, how many results are returned, or what happens with multiple matches - though exactMatch parameter partially covers matching behavior.

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 tight sentences with zero waste. The first sentence states the purpose and search criteria, the second describes the return value. Every clause carries meaning.

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 that an output schema exists (documenting the return structure) and annotations flag this as read-only/open-world, the description covers the essential aspects: what it finds, how to search, and what it returns. The tool is relatively simple with good schema coverage, so the description is adequately complete for its complexity level.

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%, so all 6 parameters are well-documented in the schema itself. The description enumerates the search criteria (text, resource ID, class name, content description) which aligns with the parameters, but adds no value beyond what the schema already provides for each parameter. Baseline 3 applies since the schema does the heavy lifting.

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 finds UI elements by text, resource ID, class name, or content description and returns coordinates. This is a specific verb+resource combination that adequately communicates the function, though it doesn't explicitly differentiate from siblings like ui_tap_element or ui_get_state beyond implying it returns coordinates.

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?

The description implies usage context (finding UI elements before interacting with them) but doesn't explicitly state when to choose this over siblings like ui_dump, ui_tap_element, or ui_get_state. There's no when-to-use or when-not-to-use guidance, though the nature of returning tap coordinates hints at its role as a preamble to tapping.

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/1999AZZAR/scrcpy-mcp'

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