Skip to main content
Glama

app_current

Read-only

Retrieve the foreground Android app package name and activity to identify what is currently displayed on a connected device.

Instructions

Get the currently foregrounded app package name and activity.

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": "app_current"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoDevice serial number

Output Schema

NameRequiredDescriptionDefault
activityYesForeground activity name, if resolvable
packageNameYesPackage name of the foreground app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.1
    • removedOutput schema / properties / activity / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / activity / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. First observedv0.4.0

TDQS

A3.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds essentially nothing beyond restating the return content in 'currently foregrounded'. It does not say whether a connected session or unlocked screen is required, or whether results can be stale/empty when no app is foregrounded.

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?

One short, front-loaded sentence with zero filler; nothing could be removed without losing information.

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?

An output schema exists so return values need not be explained, and annotations cover the safety profile, making the description largely sufficient for a simple single-parameter read. The only gap is the absence of any note about device selection or required device/session state.

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 a single optional 'serial' parameter already documented in the schema, so the schema does the heavy lifting. The description never mentions device targeting, so it adds no meaning beyond structured fields; baseline 3 applies.

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?

States a specific verb (Get) and a precise resource (currently foregrounded app package name and activity), which is unambiguous and clearly distinct from siblings like app_list or app_start that enumerate or launch 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?

Usage is only implied: an agent can infer you call this to discover what is on screen right now, but there is no explicit when-to-use guidance, no prerequisites (e.g., active session, screen state), and no mention of how this differs from a screenshot-based inspection.

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