Skip to main content
Glama

Robot Actions — Remote Device Control

iOS clear text

ios_clear_text
DestructiveIdempotent

Clear a text field on an iOS device using the native element-clear command — reliable for any field length, unlike sending backspaces. Omit label to clear the currently-focused field (tap the field first to focus it); pass label to target a specific field. Pattern: tap field → ios_clear_text → ios_send_keys. Requires an active iOS automation session (auto-starts if needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoElement type filter e.g. XCUIElementTypeTextField (used only when label is given).
udidYesiOS device UDID
labelNoAccessibility label/text of the field to clear. Omit to clear the focused field.
strategyNoElement finding strategy to try first when a label is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With annotations already declaring destructiveHint=true and idempotentHint=true, the description adds useful behavioral context: it specifies the native element-clear command, claims reliability for any field length, describes the focused-field workflow, and notes that an active iOS automation session is required but auto-starts. It does not elaborate on the exact destructive consequences (e.g., whether cleared text is recoverable), but the annotations cover the safety profile.

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?

The description is a tight paragraph with front-loaded purpose, followed by parameter behavior, a usage pattern, and a session prerequisite. Every sentence adds distinct value and there is no filler.

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?

The definition is complete enough for a four-parameter tool with full schema coverage and no output schema: it covers purpose, usage, pattern, and session requirements. It stops short of describing failure modes (e.g., what happens if no field is focused and no label matches), but those gaps are minor given the annotations and schema.

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 description coverage is 100%, so the schema already documents all four parameters. The description adds only a small amount of meaning, notably the instruction to tap the field first when omitting `label`; it does not explain `strategy` or `type` beyond what the schema provides.

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?

The description states a specific verb and resource ('Clear a text field on an iOS device') and distinguishes the native element-clear approach from sending backspaces. It also clarifies the two targeting modes (focused field vs. labelled field), making it easy to tell apart from sibling tools like ios_send_keys.

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?

It gives clear context for when to omit `label` (clear the focused field after tapping it) versus when to pass `label` (target a specific field), and provides a usage pattern (tap → ios_clear_text → ios_send_keys). It also contrasts the method with backspacing, but does not explicitly state when not to use this tool or name a direct alternative clear tool.

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