Skip to main content
Glama

get_current_app

Read-only

Retrieves the foreground Android app package and activity, enabling you to verify navigation and deep link results. Use it to assert the current app after interactions.

Instructions

Get the app (package + activity) currently in the foreground. Useful for asserting navigation and deep link results. Android only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_current_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Beyond readOnlyHint, it discloses the return payload (package and activity), foreground scope, and Android-only constraint. It omits edge-case behavior such as what happens when no app is in the foreground, but annotations already establish safety.

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?

Three short sentences are front-loaded with the core action and then add use case and platform scope. There is no redundant or promotional wording.

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 simple read-only query with no output schema, the description says what is returned (package and activity) and when it is useful. It could clarify the Android-only limitation versus the ios enum, but otherwise covers the calling context.

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 coverage is 100%, so platform and device_id are already documented. The description's Android-only caveat adds some meaning but conflicts with the schema's ios enum, leaving the platform parameter's use ambiguous.

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 and resource: get the app package and activity currently in the foreground. The foreground qualifier distinguishes it from broader app-info tools such as get_app_info, even without naming a sibling explicitly.

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 concrete use case—asserting navigation and deep link results—and a platform restriction. It does not explicitly say when to prefer alternatives like get_app_info or get_screen_state, so it lacks alternative routing.

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