Skip to main content
Glama

type_text

Destructive

Types text into the currently focused iOS text field and can press Return or delete existing characters first. Tap the target field beforehand; verify the result with the UI inspector.

Instructions

Type into the focused text field, adding to what is already there. Tap the field first (tap_element), because this doesn't choose a field. Use \n for return, or submit to press it at the end; use deleteCount to remove existing text. It can also type into Siri's field when that has focus; to send Siri a phrase directly use siri. Doesn't check what the field ends up holding; verify with describe_ui.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "type_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to type; \n presses return
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
submitNoPress return after typing
deleteCountNoPress delete this many times before typing, e.g. to clear a field

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / text / description
      Added value: +"Text to type; \\n presses return"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the annotations, which only flag destructive/non-idempotent: the description discloses that text is appended not replaced, that the tool does not focus fields, that `deleteCount` erases existing content, and that it never verifies the resulting field state. The one missing element is any indication of failure modes (e.g. no focused field, driver not started), which matters for a destructive write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences with the most important constraint (focused field required, appended text) front-loaded, and no filler. It is dense with semicolon-joined clauses where a short list would read faster, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation tool with no output schema, it covers precondition, side effect on existing content, destructive escape hatch, and verification strategy. An agent has everything needed to call this correctly and check the result.

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% and every parameter already has a description, so the description's notes on `\n`, `submit`, and `deleteCount` largely restate the schema. The only added nuance is the interaction ordering — that `deleteCount` deletions happen before the new text is typed.

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?

Opens with a specific verb and resource ("Type into the focused text field") and immediately pins down the semantics that separate it from a focusing tool: it adds to existing text rather than selecting or replacing a field. It also names the Siri-field edge case, which an agent could easily confuse with the sibling `siri` tool.

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

Usage Guidelines5/5

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

Explicitly states the prerequisite and the alternative: "Tap the field first (tap_element), because this doesn't choose a field," and routes direct phrase-sending to `siri`. It also names the follow-up verification path ("verify with describe_ui"), so the whole call sequence is inferable.

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