Skip to main content
Glama
rahulkr
by rahulkr

press_recent_apps

Open the recent apps switcher on Android devices to quickly switch between running applications during development and testing workflows.

Instructions

Open recent apps / app switcher

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
device_serialNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Handler function decorated with @mcp.tool(), which registers it as an MCP tool. Executes ADB shell input keyevent KEYCODE_APP_SWITCH to open the recent apps/app switcher on the Android device.
    @mcp.tool()
    def press_recent_apps(device_serial: str | None = None) -> str:
        """Open recent apps / app switcher"""
        return run_adb(["shell", "input", "keyevent", "KEYCODE_APP_SWITCH"], device_serial)
Behavior2/5

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

With no annotations provided, the description carries full burden but only states the action without behavioral details. It doesn't disclose what 'Open' entails (e.g., whether it's a toggle, how long it takes, if it requires device interaction), leaving gaps in understanding the tool's behavior beyond the basic action.

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 a single, efficient phrase that front-loads the core action. There's no wasted wording, making it easy to parse quickly while conveying the essential purpose.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one optional parameter) and the presence of an output schema (which handles return values), the description is minimally adequate. However, with no annotations and a mutation-like action ('Open'), it should ideally include more behavioral context to be fully complete.

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 tool has one optional parameter ('device_serial'), but schema description coverage is 0%, so the description must compensate. Since the description doesn't mention any parameters, it doesn't add semantics, but with 0 required parameters and a simple optional one, the baseline is high. The lack of parameter explanation is less critical here.

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 clearly states the action ('Open') and the target ('recent apps / app switcher'), making the purpose immediately understandable. It doesn't distinguish from siblings like 'press_back' or 'press_home', but it's specific enough to know this triggers a system UI component rather than a navigation action.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., device state), exclusions, or how it differs from similar navigation tools like 'press_home' or 'press_back' in the sibling list.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server