Skip to main content
Glama

Robot Actions — Remote Device Control

Device dismiss recent app

device_dismiss_recent_app
Destructive

Open the Recents screen and dismiss an app card. Optionally tap "Close all". Useful for clearing background apps or verifying an app was killed. Sends keycode 187 (APP_SWITCH) shell (policy-gated), waits for the UI to settle, then locates and swipes away the target card. Returns { success, action, ... }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoTap "Close all" / "Clear all" button instead of swiping a single card
udidYesDevice serial number (UDID)
packageNameNoPackage name of the app card to dismiss (e.g. com.android.chrome). If omitted, dismisses the first/frontmost card.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, but the description adds real value beyond them: keycode 187 (APP_SWITCH) dispatch, a policy-gated shell, a UI settle wait, and the swipe-away sequence. It also sketches the return shape, which no output schema provides. It does not say what happens if the target card is absent, a minor gap.

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?

Four sentences, front-loaded with the core action before the mechanism and return value. The trailing "Returns { success, action, ... }" is slightly truncated but earns its place given there is no output schema.

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 three-parameter mutation tool with no output schema, the description covers the action, the gating constraint, the internal sequence, and a return hint. It is nearly complete; only the not-found/no-target behavior and any permission prerequisites are unstated.

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 udid, all, and packageName are already documented in the schema. The description only echoes the "Close all" behavior of `all` and adds no syntax or format detail, so baseline 3 applies.

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 gives a specific verb+resource ("Open the Recents screen and dismiss an app card") and even names the mechanism, so an agent can tell what it does. It stops short of explicitly distinguishing itself from close siblings like device_terminate_app or device_clear_app_data, which also clear apps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Useful for clearing background apps or verifying an app was killed" implies intent but never states when to pick this over device_terminate_app or device_clear_app_data. There are no exclusions or explicit alternative routing, leaving selection to inference.

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