Skip to main content
Glama
1999AZZAR

scrcpy-mcp

by 1999AZZAR

ui_smart_fill

Locates and taps a UI element on an Android screen, injects specified text, and optionally presses ENTER. If targeting a label, it smartly finds the nearest input field.

Instructions

Find a UI element, tap it, inject text, and optionally press ENTER. Smartly finds the nearest input field when targeting a label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText content to search for to find the element
indexNoIf multiple elements match, which one to tap (0-indexed)
serialNoDevice serial number
classNameNoClass name to match exactly
exactMatchNoIf true, text and contentDesc require exact matches
pressEnterNoPress ENTER key after typing
resourceIdNoResource ID to match exactly
textToTypeYesThe text to inject into the field
contentDescNoContent description to search for

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes
successYes
Behavior3/5

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

Annotations provide readOnlyHint=false and openWorldHint=true, signaling this mutates device state and operates on live UI rather than a closed world. The description adds the composite behavior (locating, tapping, typing, optional ENTER) and the label-to-nearest-field intelligence, which is value beyond annotations. However, it doesn't disclose edge behaviors like what happens with multiple matches, focus requirements, or failure modes.

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, fully front-loaded with the action sequence and the distinguishing smart-label behavior. No wasted words; every clause earns its place.

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?

With a 100% covered schema and an output schema present, the description doesn't need to explain return values. The composite find+type behavior is well captured, but given it's a complex multi-step tool with 9 params and a smart disambiguation step, a bit more on match failure or multi-step expectations would strengthen completeness.

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?

Schema coverage is 100%, so all 9 parameters are documented. The description adds meaning by clarifying the two-part nature: search-based element location (text, contentDesc, resourceId, className, exactMatch, index) feeding into a type action (textToType, pressEnter). This helps an agent understand how search and action parameters relate, adding value beyond the individual field descriptions.

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?

Description clearly states verb+resource (find, tap, inject text, press ENTER) with a distinguishing smart feature (finds nearest input field when targeting a label). It differentiates reasonably from siblings like tap, input_text, and form_fill, though it doesn't explicitly name them.

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 a composite action (find+tap+type) and mentions the smart label-to-field behavior, which gives some context on when it would be preferred. However, it does not explicitly state when to use this vs. alternatives like input_text, tap, or form_fill, nor any exclusions or prerequisites.

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