Skip to main content
Glama

Robot Actions — Remote Device Control

Device UHID create

device_uhid_create

Register a virtual HID device on an Android device via the device control channel. descriptor is base64-encoded HID report descriptor bytes. reportLen is the exact byte-length of every INPUT report for this id (used for validation). After CREATE, Android needs ~250ms before the device accepts INPUT — this delay is applied automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUHID device id (s32, unique per session)
nameYesHuman-readable device name (UTF-8)
udidYesDevice serial number (UDID)
vendorIdYesUSB vendor ID (signed s16)
productIdYesUSB product ID (signed s16)
reportLenYesExpected byte-length of each INPUT report
descriptorBase64YesHID report descriptor as base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnly=false, destructive=false, idempotent=false), so the description's job is to add context, which it does: it discloses the auto-applied ~250ms post-CREATE settling delay and the validation role of reportLen. It stops short of stating failure/conflict behavior (e.g., duplicate id handling).

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?

Three tight sentences, each earning its place: identity/action first, then the two non-obvious parameters, then the timing behavior. Front-loaded and free of 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?

With no output schema, the description covers the essential creation semantics plus the timing behavior an agent needs. It omits what happens on id collisions or whether an existing device must be destroyed first, which would fully close the loop for a non-idempotent mutation.

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 meaning beyond the schema strings: it clarifies that descriptor is the base64 report descriptor bytes and that reportLen is the exact per-report INPUT length used for validation. This contextualizes why those two fields matter rather than merely restating them.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Register a virtual HID device on an Android device via the device control channel'), and the lifecycle language ('After CREATE ... accepts INPUT') makes clear it is the setup step of the UHID family. It does not name sibling tools like device_uhid_input or device_uhid_destroy directly, so sibling differentiation is implied rather than explicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the CREATE-then-INPUT lifecycle referenced in the delay sentence, which tells the agent this precedes input injection. However, there is no explicit 'when to use this vs. alternatives' or a named downstream tool ('use device_uhid_input after this'), so guidance remains inferred rather than stated.

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