Skip to main content
Glama

Current app

current_app
Read-onlyIdempotent

Retrieves the Android package and activity currently in the foreground so you can confirm which app and screen is active before performing actions.

Instructions

The package/activity currently in the foreground.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is fully covered. The description adds only the subject matter (foreground vs. background), and says nothing about whether this is a point-in-time snapshot, what is returned when the home screen or a system dialog is in front, or behavior across multiple displays — context the annotations do not supply.

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?

One short fragment with zero wasted words, and the key qualifier ('currently in the foreground') is front-loaded. Its brevity is efficient, though the fragment form leaves it feeling more like a field label than a tool description.

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?

With no output schema, the description carries the burden of explaining the return value; 'package/activity' hints at the payload fields but does not state the format (single string, object with two fields, etc.) or the behavior when no app is foregrounded. For a trivial zero-parameter read tool this is marginally adequate, but not sufficient to call it 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 takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a no-parameter tool applies. No parameter semantics are missing.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies the resource it reports on — the foreground package/activity — which is more specific than the title 'Current app'. However, it is a noun fragment with no verb, so it never explicitly says it *returns* or *reads* this value, and it does not distinguish itself from siblings such as device_info, screenshot, or ui_dump that also describe the current screen state.

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?

There is no when-to-use guidance at all: no statement of the scenario this serves (e.g. identifying which app is in front before acting on it), no exclusions, and no mention of alternatives like screenshot or ui_dump. The agent must infer the use case from the phrase 'currently in the foreground' alone.

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