Skip to main content
Glama
1999AZZAR

scrcpy-mcp

by 1999AZZAR

input_text

Type text into an Android device's input field, with options to auto-tap the send button and target a specific field by label, resource ID, or content description for precise interaction.

Instructions

Type text into the input field. Reports device context (screen, app, session). When submit=true, auto-detects and taps the send button. Optionally target a specific input field by text label, resource ID, or content description instead of auto-focus.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to type
serialNoDevice serial number
submitNoAuto-tap send/submit button after typing (for chat/messaging apps)
elementIdNoTarget a specific input by resource ID
elementTextNoTarget a specific input by its label text (e.g. 'Full Name', 'City/Domicile')
elementContentDescNoTarget a specific input by content description

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusedNoWhether an input field was auto-focused
messageYesHuman-readable description of the action performed
successYesWhether the input action was dispatched to the device
screenOnYesWhether the screen was on before this action
currentAppYesPackage name of the foreground app
submitUsedNoWhether a submit button was tapped after typing
sessionActiveYesWhether scrcpy session was active
Behavior3/5

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

Annotations provide no readOnly/destructive warnings beyond defaults (readOnlyHint=false, destructiveHint=false), but the description does add useful behavioral context: it 'reports device context' and 'auto-detects and taps the send button' which implies two sequential actions. It doesn't disclose behavior when no element is found, focus failures, or typing speed/visibility limitations beyond what schema covers.

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?

Three sentences, all load-bearing. First sentence states core action, second covers the key option (submit), third covers the targeting mechanism. Zero filler or redundancy.

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?

A moderately complex tool (6 params, output schema present) with clear enough guidance. It covers primary action, optional submit behavior, and targeting alternatives. The output schema exists so return values are already documented. Missing context includes interplay with ui_tap_element or ui_wait_for_element, and behavior on validation failures, but overall adequate.

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% and schema descriptions are decent, but the description adds meaningful nuance: elementText is explained with concrete examples ('Full Name', 'City/Domicile'), and it clarifies the targeting options are alternatives to auto-focus. The 'device context' reporting aspect for serial is a useful addition beyond the schema's bare 'Device serial number'.

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?

Clear verb+resource: 'Type text into the input field.' Distinguishes from siblings by noting it also reports device context and supports submit and targeted field selection. This differentiates it from related tools like ui_smart_fill, form_fill, and key_event.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly explains when submit=true is appropriate (auto-tap send for chat/messaging apps) and when to use targeted element selection instead of auto-focus. However, it doesn't explicitly state when to prefer input_text over helpers like ui_smart_fill or form_fill, or when auto-focus might fail.

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