Skip to main content
Glama

Type text

phone_type

Types text into the focused Android field or taps a specified field first, with options to clear input and submit. Use it to fill forms or trigger searches in agent-driven emulator tests.

Instructions

Type text into the focused field, or first tap a field given by ref or field (its visible text or hint). Newlines press Enter. ASCII only for now.

Input Schema

NameRequiredDescriptionDefault
refNoElement number from the latest screen list.
textYesText to type.
clearNoDelete the existing text first.
fieldNoVisible text, hint or id of the field to type into.
serialNoWhich device to use. Only needed when several are connected.
submitNoPress Enter afterwards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the ASCII-only limitation and that newlines press Enter, which are real behavioral traits. It omits failure modes, whether the app must be foregrounded, timing/retry behavior, and whether typed text replaces or appends by default.

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, front-loaded with the primary action, then the targeting variant, then behavioral caveats. Nothing is redundant or padded.

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?

For a 6-parameter input tool with no annotations and no output schema, the description covers action, targeting, and the two most surprising constraints (ASCII-only, newline=Enter). A brief note on what happens when no field is focused or on failure would close the remaining gap.

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 baseline is 3, but the description adds genuine semantics: ref vs field as alternative targeting mechanisms, and that embedded newlines in text act as Enter presses. clear, submit and serial are left to the schema, which documents them adequately.

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?

States a specific verb (type) and target (focused field) plus the optional pre-step of tapping a field by ref or visible text. This implicitly separates it from phone_tap and phone_key, though it never names a sibling explicitly.

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?

Explains both invocation modes: type into whatever is already focused, or target a field via ref (index) or field (visible text/hint). No explicit when-not guidance or named alternatives, but the context needed to choose a path is present.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.