Skip to main content
Glama

Type text / press key

android_type

Types text into the focused Android field or presses navigation keys (back, home, enter, recents, delete, tab, menu) on connected devices.

Instructions

Type into the focused field, or press a key (back, home, enter, recents, delete, tab, menu).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "android_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
textNo
serialNoDevice serial; optional if one device

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, closed-world mutation. Beyond that the description adds the useful disclosure that input goes to whatever currently has focus, but it omits failure behavior when no field is focused, what happens if both text and key are supplied, and whether key injection affects the foreground app globally.

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?

A single front-loaded sentence with the primary action first and the key enumeration as a parenthetical. No filler, no repetition of schema or annotation content.

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 simple two-mode input tool with no output schema and clear annotations, the definition covers the main behavioral surface: target of input and the valid key set. The remaining gaps (focus precondition failure, text/key precedence) are minor but not zero for a mutation tool.

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 only 33% (only serial is documented), so the schema does not carry the load here. The description does add real meaning by enumerating the valid key values, which the schema lacks any enum for, but it never explicitly ties 'text' and 'key' as mutually exclusive input modes or explains precedence when both are present.

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 concrete verb (type / press) plus the target (focused field / system key) and enumerates the supported keys, which lets an agent tell it apart from android_tap and android_swipe. It stops short of explicitly naming those siblings as alternatives, so differentiation is inferable rather than stated.

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 phrase 'into the focused field' implies a precondition (something must already have focus, which likely means a prior android_tap or android_launch), and the key list scopes the keypress mode. There is no explicit when-to-use-vs-alternatives guidance, and neither parameter is required, so it never says how to choose between passing text, key, or both.

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