Skip to main content
Glama

Robot Actions — Remote Device Control

iOS send keys

ios_send_keys

Type text into the FOCUSED field on an iOS device — tap a text field first. Use \n in text to press the Return/Go key (e.g. "user@example.com\n" to submit). Refuses when nothing is focused instead of reporting a success it cannot back: the device accepts the keystrokes either way, so with no focused field the text goes nowhere and the old behaviour still said it was typed. Pass force:true to send anyway (rare — for surfaces where the active element is not reported). On a device set to direct-input-only this types over the direct input path (no automation session), and the focused-field check above is skipped there since it cannot be checked without one — tap the field first regardless. Otherwise requires an active iOS automation session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to type. Use \n to press Return/Go key.
udidYesiOS device UDID
forceNoSend even when no focused field is reported (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / force
      Added value: +{
      +  "description": "Send even when no focused field is reported (default: false)",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations, which only declare this is not read-only/idempotent/open-world. It discloses refusal semantics with a rationale, the force bypass, the direct-input path that skips the focused-field check, and the requirement of an active iOS automation session.

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?

Front-loads the core action and the focus precondition, and nearly every clause carries information. The aside explaining the previous buggy behaviour ('the old behaviour still said it was typed') is longer than needed to justify the refusal, costing a little tightness.

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?

With no output schema and only three documented parameters, the description supplies everything an agent needs: the session precondition, the focus precondition, the refusal/force path, and the direct-input exception. Nothing material is left unstated.

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 the baseline is 3, but the description adds real meaning: force:true is scoped to 'surfaces where the active element is not reported' and framed as rare, and the \n-as-Return behaviour is restated with a concrete example ('user@example.com\n' to submit).

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?

Names a specific verb+resource+target: typing text into the FOCUSED field on an iOS device. It implicitly separates itself from raw-input siblings such as ios_key_hid and from generic typing tools by stating the focus precondition up front.

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?

Explicit when-to-use (tap a text field first), an explicit failure mode and why it exists (refuses when nothing is focused rather than falsely reporting success), the escape hatch (force:true, flagged as rare), and the direct-input-only exception with the note that the check is skipped there.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources