Skip to main content
Glama

gamepad

Press buttons on a virtual game controller connected to iOS, tvOS, or visionOS simulators to test games that need controller input; send d-pad, face, shoulder, and menu presses in order.

Instructions

Press buttons on a virtual game controller connected to a simulator (iOS, tvOS, visionOS). For games that take a controller. Buttons: up, down, left, right (d-pad), a, b, x, y, menu, options, l1, r1, l2, r2. Several buttons are pressed one after another.

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": {
      "device": "<device>",
      "buttons": "<buttons>"
    },
    "name": "gamepad"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesDevice id (or exact name) from the devices tool
holdMsNoHow long each button is held. Default 150
buttonsYesButtons to press, in order, for example ["right", "a"]
screenshotAfterMsNoIf set, wait this many milliseconds after the action and return a screenshot too

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses that several buttons are pressed one after another and lists all supported buttons, but it does not mention failure modes (e.g., invalid button, game not running), permission requirements, or whether the game must be in focus.

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?

The description is front-loaded with the core purpose, then concisely provides the button list. It is appropriately sized and contains no unnecessary wording.

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?

Given 4 parameters, no output schema, and no annotations, the description is nearly complete: it covers purpose, usage condition, button options, and sequential pressing. The only minor gap is failure behavior, but for a simple input tool this is acceptable.

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 value by enumerating all valid button names (up, down, left, right, a, b, x, y, menu, options, l1, r1, l2, r2), which the schema does not list explicitly.

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 (press) and resource (buttons on a virtual game controller) with platform scope (iOS, tvOS, visionOS) and use case (for games that take a controller). It clearly distinguishes from sibling tools like tap, key, or swipe which handle other input types.

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 explicitly states when to use it: 'For games that take a controller.' This gives a clear condition, but it does not explicitly name alternatives for non-controller games or describe what to do if the game does not support a controller.

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