Skip to main content
Glama

Robot Actions — Remote Device Control

iOS key HID

ios_key_hid

Send raw HID keyboard usage codes as real hardware keypresses — the ONLY way to inject true keypresses, modifiers and shortcuts (the typing tools can only type into a focused field). usages is an ordered list of USB HID Keyboard/Keypad usage-page codes (e.g. 0x04=a … 0x1D=z, 0x28=Return, 0x2A=Backspace; modifiers 0xE0=LeftCtrl…0xE3=LeftGUI); send them together to press a chord. usages [74] is the keyboard Home key: it wakes the device and clears a passcode-free Lock Screen without closing whatever app was open — this is NOT the Home button (ios_press_button 'home'), which leaves the app. The keys are pressed AND released as one action, so nothing stays held after the call. Pass an empty list to force-release anything a previous caller left held. Returns "no HID available" on older iOS or when the device has no active input channel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesiOS device UDID
usagesYesOrdered USB HID Keyboard/Keypad usage codes to press together (numbers, e.g. [0x04] for "a"). Empty list = release any keys left held.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / usages / description
      Previous value: -"Ordered USB HID Keyboard/Keypad usage codes to send (numbers, e.g. [0x04] for \"a\")"New value: +"Ordered USB HID Keyboard/Keypad usage codes to press together (numbers, e.g. [0x04] for \"a\"). Empty list = release any keys left held."
    • removedInput schema / properties / usages / minItems
      Removed value: -1
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) the description discloses that keys are pressed AND released as one action so nothing stays held, that an empty list force-releases prior held keys, and that it returns 'no HID available' on older iOS or when no active input channel exists. That is meaningfully more than the safety hints provide.

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?

Dense but front-loaded — the core capability and its unique value lead, followed by code examples and edge cases. Every sentence carries information, though the code table and the Home-key digression make it longer than strictly necessary.

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?

No output schema exists, so the description carries the return burden, and it does: the success semantics (one atomic press+release) and the failure string ('no HID available') are both documented. For a 2-parameter, 100%-covered tool this is complete.

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 baseline is 3, but the description adds substantial meaning: it enumerates usage-page codes (0x04=a, 0x1D=z, 0x28=Return, 0x2A=Backspace, modifiers 0xE0–0xE3), explains that codes sent together form a chord, and specifies the empty-list semantics. This goes beyond the schema's terse usages description.

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?

States a specific verb+resource (send raw HID keyboard usage codes as real hardware keypresses) and immediately scopes it against siblings: 'the ONLY way to inject true keypresses... (the typing tools can only type into a focused field).' An agent can distinguish it from ios_send_keys, device_type, ios_press_button, and ios_release_hid without opening any schema.

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 says when to use it (true keypresses, modifiers, shortcuts that typing tools cannot do), names the alternatives it is not (typing tools; ios_press_button 'home'), and gives a conditional usage: empty list to force-release anything left held. Nothing is left to inference.

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