Skip to main content
Glama

vphone_hid_press

Sends a complete HID button press and release to a vPhone virtual iOS device using a specified usage page and usage code.

Instructions

Press and release a HID button.

Sends a HID button press and release event. This is a complete press cycle (down then up) in a single operation.

Args: page: HID usage page (e.g., 0x0C for Consumer page) usage: HID usage code within the page

Returns: HIDPressOutput with success status

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page": "<page>",
      "usage": "<usage>"
    },
    "name": "vphone_hid_press"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesHID usage page
usageYesHID usage code

Output Schema

NameRequiredDescriptionDefault
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does clarify the atomicity of the down/up pair and that the result carries a success status, but says nothing about device-connection prerequisites, failure modes for invalid usage codes, or any rate/permission constraints on injecting hardware events.

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 purpose and the press-cycle semantics are front-loaded and take two short sentences. The trailing Args block merely restates the schema descriptions and the Returns line duplicates the existing output schema, which is mild redundancy rather than harmful bloat.

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 two-integer-parameter tool with an output schema present, the description covers what it does, its atomicity, and gives a usage-page example. The main omission is operational context — whether the target device must be connected and how errors surface — which is not fully inferable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both integers are already documented, which sets the baseline at 3. The description does add one useful piece of meaning the schema lacks — the concrete example 0x0C for the Consumer page — but gives no guidance on how to pick a usage code within a page.

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?

"Press and release a HID button" states a specific verb and resource, and the follow-up sentence clarifies that this is a full down-then-up cycle in one call, which is exactly what distinguishes it from the vphone_hid_down / vphone_hid_up siblings.

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?

By describing the operation as a complete press cycle "in a single operation," the description implicitly tells the agent to prefer this over composing down + up calls. There are no explicit exclusions, prerequisites, or named alternatives, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.