Skip to main content
Glama
mobile-next

Mobile Next MCP Server

Official
by mobile-next

Get Foreground App

mobile_get_foreground_app
Read-only

Retrieve the app currently in the foreground on a specified device to verify which screen or app is active before interacting with it.

Instructions

Get the app currently in the foreground on the device. Use this to verify which app or screen you are on before interacting with it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceYesThe device identifier to use. Use mobile_list_available_devices to find which devices are available to you.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the read-only nature is covered. The description adds a usage hint (verifying before interaction) but does not disclose extra behavioral traits like return format or potential edge cases. This aligns with the get_calls example where annotations carry the safety profile.

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?

Two sentences, front-loaded with the core action, followed by a practical use case. No wasted words; every sentence earns its place.

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 simple getter with one parameter and no output schema, the description fully covers what the agent needs: what it does and when to use it. The schema covers the parameter, and annotations cover safety. Nothing essential is missing.

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%, with the device parameter fully documented (including how to discover devices). The description itself does not add parameter details, so it meets the baseline 3 for high schema coverage.

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?

Clear verb 'Get' and specific resource 'app currently in the foreground'. The description also states its purpose (verify which app/screen) and implicitly differentiates from siblings like mobile_list_apps which list all apps.

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?

Provides a clear when-to-use: 'before interacting with it' to verify the current context. It does not explicitly list alternatives or exclusions, but the use case is specific and practical, making selection straightforward.

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