Skip to main content
Glama

Robot Actions — Remote Device Control

ios_gamepad_disconnect

Release every input the virtual game controller is holding on an iOS device, so nothing stays pressed after you finish. Also drops any controller being streamed from a live viewer of this device — otherwise that one re-sends its frame a moment later and the release looks like it silently failed. Call this when finished.

By default the controller STAYS CONNECTED with nothing held: apps still see a gamepad, and the next call reuses it instead of waiting ~5 s for the device to adopt a new one. Pass unplug:true to remove it outright — the honest choice when handing the device back, since a phantom controller changes how games behave for whoever gets it next. The cost of unplugging is paid later, not now: re-registering waits out the adoption again, and the device keeps a permanent entry for every controller ever registered, which nothing can remove.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesiOS device UDID
unplugNoRemove the controller from the device instead of just releasing its inputs (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations present, the description carries the full behavioral burden and does so thoroughly. It discloses that the controller stays connected by default, that re-registering costs ~5 seconds, that unplugging leaves a permanent and unremovable device entry, and that streamed controllers can re-send frames and mask a successful release.

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 primary behavior and then proceeds through default behavior, the unplug variant, and long-term side effects in a logical order. Although longer than average, every sentence contributes a distinct operational implication rather than filler.

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

Completeness5/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 no output schema, the description is complete: it covers the common use case, an important edge case, the default behavioral contract, the parameter variant, and the irreversible side effect. An agent has enough context to invoke it correctly and anticipate consequences.

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?

The schema already documents both parameters with 100% coverage, so the baseline is 3. The description adds strong semantic value to 'unplug' by explaining the operational consequence, the recommendation context, and the future cost of re-registering, which is beyond what the schema alone offers.

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 opens with a specific action: 'Release every input the virtual game controller is holding on an iOS device,' naming the verb, resource, and platform clearly. It also covers the secondary streaming-controller behavior, so the full purpose is unambiguous and distinguishable from state/status 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?

It gives explicit situational guidance: 'Call this when finished,' plus a clear decision rule for default behavior versus unplug:true and a recommendation for handing the device back. It does not explicitly name sibling alternatives like device_gamepad_disconnect, so it stops just short of full alternative routing.

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