Skip to main content
Glama

Robot Actions — Remote Device Control

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

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

With no annotations, the description carries the full behavioral disclosure burden and does so thoroughly. It explains that keys are 'pressed AND released as one action, so nothing stays held,' describes the fallback error case ('no HID available'), and documents the release mechanism via an empty list. This is transparent and prevents common misuse.

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 dense but efficient: three sentences cover purpose, parameter semantics, release behavior, and failure modes. Every sentence earns its place, and the core differentiating purpose is front-loaded. No redundant or filler content is present.

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?

Given the lack of annotations and output schema, the description covers all critical aspects an agent needs: what the tool does, how to encode usages, chord behavior, the one-action press/release guarantee, the empty-list release usage, and the expected error condition. The tool is complex, and the description is complete enough for correct invocation.

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 value beyond the schema by providing concrete USB HID usage-code examples (0x04=a, 0x28=Return), modifier ranges (0xE0–0xE3), and chord semantics. The udid parameter gains no new meaning, but the usages parameter is substantially enriched.

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 action ('Send raw HID keyboard usage codes as real hardware keypresses') on a specific resource (iOS key input). It strongly distinguishes itself from sibling typing tools by claiming it is 'the ONLY way to inject true keypresses, modifiers and shortcuts,' which separates it from ios_send_keys and similar tools.

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?

The description provides clear usage context: use this when true hardware keypresses, modifiers, chords, or shortcuts are needed, and notes that 'typing tools can only type into a focused field.' It also explains when to pass an empty list to force-release stuck keys. However, it does not explicitly name alternative sibling tools or give a formal when-not-to-use list beyond the generic typing-tool contrast.

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