Skip to main content
Glama

vphone_hid_up

Releases a held HID button by sending a button-up event, undoing a prior press so virtual iOS device input returns to an inactive state.

Instructions

Release a held HID button.

Sends a HID button up event. Releases a button that was previously pressed with vphone_hid_down.

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_up"
  }
}

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

A4.1/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it discloses the underlying event ('HID button up event') and the return type ('HIDKeyOutput with success status'), which is useful. However, it omits whether releasing an unheld button errors or is a no-op, whether there are permission/auth prerequisites, and any side effects — meaningful gaps for a device-control mutation with zero annotation coverage.

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 core action is front-loaded in the first line and the docstring-style Args/Returns block is easy to scan. The opening sentence and the third sentence ('Releases a button that was previously pressed...') are partially redundant, costing a bit of tightness.

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-parameter tool with an existing output schema, the description covers purpose, the partner tool, parameter meaning, and the return type adequately. The only real omission is edge-case behavior when no button is currently held, which is minor given the tool's simplicity.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning by giving a concrete example value (0x0C for the Consumer page) and clarifying that usage is scoped 'within the page'. That extra HID-specific context goes beyond the terse schema property descriptions.

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 and resource ('Release a held HID button', 'Sends a HID button up event') and explicitly ties it to the counterpart tool vphone_hid_down, so an agent can distinguish it from vphone_hid_press or vphone_hid_down without opening a schema.

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?

It gives clear usage context: this is for releasing a button previously pressed with vphone_hid_down, which establishes the pairing requirement. It does not mention the alternative vphone_hid_press (which presumably does down+up in one call) or state what happens if the button was never pressed, so it falls short of full when/when-not guidance.

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