Skip to main content
Glama

Robot Actions — Remote Device Control

ios_accessibility_audit

Run an accessibility audit on the CURRENT screen of an iOS device — Apple's own XCTest audit engine (the same one Xcode's "Audit for Accessibility" button runs), so findings match what Apple reports. Audits whatever is in the foreground right now, so navigate to the screen you care about FIRST (ios_tap_by_label / ios_navigate_url), then call this. Reports contrast failures, tap targets under 44×44pt, missing/unhelpful labels, elements the accessibility engine cannot see, Dynamic Type and clipped-text problems, and wrong traits. Each issue carries the offending element's label, type and screen-point rect — the rect centre is directly tappable with ios_tap. Pass auditTypes to narrow the run (much faster on dense screens). TIMING: the audit sees the screen as it is at that instant — running it immediately after a launch or navigation, while the UI is still animating in, under-reports (measured on device: 4 issues mid-animation vs 5 once settled). Let the screen settle first. Requires iOS 17+ (errors on older) and an active iOS automation session (auto-starts if needed).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rectNoNarrow the result to a region in screen POINTS, skipping the label lookup. Takes precedence over `element`. A finding is kept when its centre falls inside this rect.
udidYesiOS device UDID
elementNoNarrow the result to one element: its accessibility label, resolved on device the same way ios_tap_by_label resolves it. the platform audit engine can only audit a whole app, so this filters the findings to those inside that element's bounds — it cannot surface anything the full-screen audit did not already report. Errors if the label matches nothing, rather than silently returning the whole screen.
auditTypeNoConvenience alias for a single-entry auditTypes, e.g. "contrast".
auditTypesNoAudit types to run; omit for all of them. "contrast" = Text/background contrast below the WCAG threshold; "elementDetection" = Elements the accessibility engine cannot detect; "hitRegion" = Tap targets smaller than the 44×44pt minimum; "sufficientElementDescription" = Controls with a missing or unhelpful label; "dynamicType" = Text that does not scale with Dynamic Type; "textClipped" = Text clipped at larger content sizes; "trait" = Wrong or missing accessibility traits.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / element / description
      Previous value: -"Narrow the result to one element: its accessibility label, resolved on device the same way ios_tap_by_label resolves it. XCTest can only audit a whole app, so this filters the findings to those inside that element's bounds — it cannot surface anything the full-screen audit did not already report. Errors if the label matches nothing, rather than silently returning the whole screen."New value: +"Narrow the result to one element: its accessibility label, resolved on device the same way ios_tap_by_label resolves it. the platform audit engine can only audit a whole app, so this filters the findings to those inside that element's bounds — it cannot surface anything the full-screen audit did not already report. Errors if the label matches nothing, rather than silently returning the whole screen."
  2. Added

TDQS

A4.9/5.0
Behavior5/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 and delivers: it discloses the snapshot-at-instant timing behavior with measured evidence (4 issues mid-animation vs 5 once settled), the platform engine limitation (can only audit a whole app, so element filtering cannot surface new findings), the version failure mode, and session auto-start. Every significant behavioral trait an agent needs to interpret results is disclosed.

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?

Long but dense — every sentence carries non-redundant information, organized with clear signposts (TIMING:, Requires) and front-loaded with purpose and prerequisites before behavioral caveats. No filler, no restatement of the schema's parameter descriptions.

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?

Complete for its complexity: no output schema exists, but the description specifies what each issue carries (label, type, screen-point rect) and how to act on it; no annotations exist, but behavior, preconditions, failure modes, and version requirements are all covered. An agent can decide when to call it, what to pass, and what to expect in response.

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% and the schema itself is unusually detailed (rect precedence and centre-rule, element resolution and failure mode, per-enum expansion of audit types). The description still adds value beyond the schema: the performance hint that auditTypes narrows the run and is 'much faster on dense screens', plus the actionable link that a finding's rect centre is directly tappable with ios_tap.

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 names a specific verb and resource — 'Run an accessibility audit on the CURRENT screen of an iOS device' — and identifies the exact engine (Apple's XCTest audit engine, same as Xcode's 'Audit for Accessibility'). The platform scoping ('iOS device') and the enumerated finding types (contrast, tap targets under 44×44pt, missing labels, traits) clearly differentiate it from the android_accessibility_audit sibling.

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 sequences the workflow: 'navigate to the screen you care about FIRST (ios_tap_by_label / ios_navigate_url), then call this', and gives an explicit when-not condition — running right after launch or navigation under-reports while the UI animates ('Let the screen settle first'). It also states preconditions and failure modes: iOS 17+ (errors on older) and an active iOS automation session (auto-starts if needed).

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