Skip to main content
Glama

Robot Actions — Remote Device Control

device_uhid_input

Send a HID input report to a previously created UHID device (device_uhid_create). report is base64-encoded. Its byte-length must exactly match the reportLen declared at CREATE time. This is a generic raw-report primitive for any created UHID device (keyboard, mouse, gamepad) and is not text-aware. Prefer device_type to type a string; use this only when you need to compose the exact reports yourself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUHID device id (must match a prior device_uhid_create call)
udidYesDevice serial number (UDID)
reportBase64YesHID input report bytes as base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses that the report is base64-encoded, its byte-length must exactly match reportLen from CREATE time, and it is a generic raw-report primitive that is not text-aware. It could add failure/return behavior, but the critical constraints are clearly surfaced.

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?

The description is about four sentences and front-loads the action and main constraint before the alternative. It is slightly repetitive with 'previously created' and the device_uhid_create reference, but it has no real 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?

For a 3-parameter primitive with no output schema, the description covers the prerequisite, the key byte-length constraint, and the preferred alternative. It does not document response or error behavior, but that is a minor gap given the low complexity and absence of an output schema.

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 meaning beyond the schema by connecting reportBase64 to the exact byte-length requirement from CREATE and explaining that the tool is a raw primitive for composing reports, which clarifies how the parameters relate to each other.

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 ('Send') and resource ('HID input report to a previously created UHID device'), then clarifies it is a generic raw-report primitive for any UHID device and is not text-aware. This clearly distinguishes it from device_type and the higher-level UHID helpers.

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?

It explicitly says to prefer device_type for typing a string and to use this tool only when composing exact reports yourself, while also referencing device_uhid_create as a prerequisite. This gives the agent an explicit when-to-use/when-not-to-use decision.

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