Skip to main content
Glama

vphone_hid_down

Press and hold a virtual iOS device HID button by sending a button-down event for the given usage page and code; the button stays pressed until a matching release call.

Instructions

Press and hold a HID button.

Sends a HID button down event. The button remains pressed until vphone_hid_up is called with the same page and usage.

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

Returns: HIDKeyOutput 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_down"
  }
}

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

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

No annotations are supplied, so the description carries the full burden. It does disclose the critical stateful side effect (the key stays held until released) and names the return type, which is valuable, but says nothing about error cases, repeated presses of the same usage, or whether the held state survives a disconnect.

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 lead sentence is front-loaded and the hold semantics come immediately after. The Args/Returns block largely restates the schema and output schema, which is minor redundancy rather than noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return type need not be explained, and the release dependency is covered. For a stateful, mutation-style input tool with zero annotations, though, the definition leaves out failure modes and stuck-key recovery, which an agent would want before calling it.

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 the baseline is 3. The description adds a useful concrete example (0x0C for the Consumer page) that the schema lacks, but gives no guidance on valid usage combinations or how page/usage pair with the same arguments in vphone_hid_up.

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 concrete verb and resource ("Press and hold a HID button", "Sends a HID button down event") and explicitly names the sibling that releases it, vphone_hid_up. It does not distinguish itself from vphone_hid_press, which a reader would plausibly confuse with a down+up tap, so it stops short of full sibling differentiation.

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 required pairing is spelled out: the button "remains pressed until vphone_hid_up is called with the same page and usage", which tells an agent exactly how to sequence calls. There is no explicit when-not guidance or comparison to vphone_hid_press, so it is clear context rather than complete routing guidance.

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