Skip to main content
Glama

ACTION_LAUNCH_APP

Launch an Android app or open a specific system settings page by package name, Activity, or allowed intent. Returns launch status and overlay permission details for automation workflows.

Instructions

打开应用,或打开系统设置的某一页。输出:launch_success, launch_error, launch_has_overlay, launch_package。Android 10+ 后台启动可能被系统静默拦截而 launch_success 仍为 true;launch_has_overlay 表示是否有悬浮窗权限(后台启动的豁免条件之一)。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
activityNo可选:完整 Activity 类名,直接启动该页面
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
package_nameNo应用包名,支持 ${var};不给 intent_action 时必填
intent_actionNo打开系统设置页,只允许 android.settings.*(如 android.settings.BLUETOOTH_SETTINGS)或 android.intent.action.POWER_USAGE_SUMMARY;给了就忽略 package_name
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does substantial work: it names the output variables, warns that on Android 10+ a background launch may be silently blocked while launch_success still returns true, and explains that launch_has_overlay reflects overlay permission as a background-launch exemption. That is exactly the kind of non-obvious failure mode an agent needs. It stops short of stating required permissions, whether an overlay prompt is triggered, or any timing/latency expectations, so not a 5.

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?

Purpose is front-loaded in the first clause, followed by return values and then the critical Android 10+ caveat — a sensible order. It is compact for the amount of behavioral content packed in, though the doubled period ('。。') and the slightly run-on caveat sentence show minor polish issues.

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?

There is no output schema, and the description compensates by enumerating the four returned variables and their meanings, including the counterintuitive launch_success caveat. Combined with a fully documented six-parameter schema, an agent has enough to call this correctly; only permission prerequisites and failure-handling behavior (beyond on_error) are left unstated.

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%, so all six parameters (including the on_error enum and node_timeout_ms default) are already documented in structured form, making 3 the baseline. The description adds only the cross-cutting note that string parameters accept ${var} interpolation, which is genuinely useful but does not deepen any individual parameter's meaning.

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 states a specific verb and two concrete resources: launch an app (package_name) or open a system settings page (intent_action). An agent can immediately tell this is a launch/activation action rather than a query or search. It does not explicitly differentiate itself from look-alike siblings such as ACTION_APP_SEARCH or ACTION_FOREGROUND_APP, which keeps it at 4 rather than 5.

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 implied through the two modes ('open app' vs 'open a settings page'), and the schema clarifies that intent_action overrides package_name. However, there is no explicit when-to-use guidance against alternatives — an agent must infer on its own whether to call this versus ACTION_APP_SEARCH, ACTION_GET_APP_INFO, or ACTION_FOREGROUND_APP when it wants to know or confirm the foreground app.

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