Skip to main content
Glama

Robot Actions — Remote Device Control

iOS gamepad disconnect

ios_gamepad_disconnect
Idempotent

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

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

Well beyond the annotations (readOnly=false, destructive=false, idempotent=true), it discloses that the controller stays connected by default, that the next call reuses it and avoids a ~5 s adoption wait, that a streamed controller is also dropped, and that the device retains a permanent per-controller registry entry nothing can remove. These are exactly the operational traits an agent needs.

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?

Front-loaded with the core action in the first sentence, then the viewer-controller caveat, then the unplug tradeoff. It is longer than average but nearly every sentence carries non-redundant consequence; only mild verbosity keeps it from a 5.

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?

With no output schema and only two params, the description fully covers the behavioral surface: what is released, what stays connected, what unplug removes, the reconnect cost, and the permanent registry side effect. An agent has everything needed to call it correctly.

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 baseline is 3, but the description adds real meaning for 'unplug' beyond the schema's one-liner: it is framed as the honest choice when returning the device, with the future re-registration cost and permanent-registry consequence spelled out. It lacks formal syntax detail, so not a 5.

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 precise verb+resource+scope: 'Release every input the virtual game controller is holding on an iOS device.' It also clarifies an otherwise non-obvious side effect (dropping a controller streamed from a live viewer), which distinguishes this from sibling tools like ios_gamepad_state and ios_gamepad_status.

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 a clear trigger ('Call this when finished') and explicitly frames the default-vs-unplug decision with a recommendation for handing a device back. It does not name sibling tools as alternatives, so it falls short of a 5, but the when-and-why guidance is strong.

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