Skip to main content
Glama

app_current

Identifies the Android app or activity that currently has focus, helping agents determine the foreground context before issuing device actions.

Instructions

Which app/activity currently has focus.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description must carry behavioral weight; it does establish that this is a point-in-time foreground query, which implies a non-mutating read. However it says nothing about the response shape (package name vs. activity class vs. label), what happens on the home screen or with no focused window, or any device-state requirement.

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 filler, front-loading the single fact it conveys. It is arguably terse to the point of lacking structure, but no sentence is wasted.

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?

For a trivial zero-parameter read this is close to sufficient, but with no output schema and no annotations the description should still say what the returned value looks like and any device-state prerequisites. That single missing sentence keeps it at minimum viability rather than 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 the baseline of 4 applies; there is nothing to disambiguate and the description introduces no parameter confusion.

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 names a specific resource — the app/activity that currently has focus — via a clear query implied by the phrasing. It implicitly distinguishes from app_list (installed apps) and screen_state (display on/off) by scoping the answer to the foreground process, though it never names 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 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 this is the tool for 'what's in the foreground right now', but there is no statement of when to prefer it over app_list or screenshot, and no preconditions (e.g. requires a connected/selected device) are given.

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