Skip to main content
Glama

Robot Actions — Remote Device Control

ios_clear_text

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.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the native clearing mechanism, the focused-field behavior versus targeted-field behavior, the expected workflow, and the session auto-start behavior. It does not cover failure cases or return values, but it provides meaningful behavioral context beyond the schema.

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 three sentences with no filler. It front-loads the core purpose, then gives the key parameter behavior, the recommended workflow, and the session requirement. Every sentence earns its place and avoids repeating schema field descriptions.

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 description is largely complete for an action tool with no output schema: it explains what to clear, how to choose between focused and labeled fields, the expected workflow, and the session requirement. The main gap is the absence of error behavior when no field is focused and no label is provided, but the provided context is sufficient for correct invocation in most cases.

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. The description adds important semantics beyond the schema by explaining that omitting `label` clears the focused field and that tapping the field first is part of the pattern. It does not expand much on `type` or `strategy`, but the schema already documents those adequately.

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 ('Clear'), a resource ('a text field on an iOS device'), and a precise mechanism ('native element-clear command'). It distinguishes itself from a common alternative ('unlike sending backspaces') and from the related ios_send_keys workflow, making it easy for an agent to see exactly what this tool does.

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 usage context: omit `label` to clear the focused field after tapping it, or pass `label` to target a specific field. It also provides a workflow pattern ('tap field → ios_clear_text → ios_send_keys'). However, it does not explicitly name alternatives or exclusions, such as when a generic clear tool or a different iOS command would be preferred.

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