Skip to main content
Glama

ACTION_DYNAMIC_ISLAND

Displays a non-blocking dynamic-island capsule message at the top of the screen that auto-dismisses after a set duration, useful for brief on-screen alerts during Android automation.

Instructions

屏幕顶部弹出灵动岛样式的胶囊提示,到时自动消失(宿主 App 注册;需悬浮窗权限)。duration_ms 必须是数字,写成字符串会被忽略按 3000。不阻塞,显示后立即执行下一节点;没有悬浮窗权限时静默失败,不写任何变量。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
messageYes显示的文字(单行,过长截断),支持 ${var}
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
duration_msNo显示毫秒数(默认 3000)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the overlay-permission prerequisite, that failure without permission is silent and writes no variables, that execution is non-blocking, and that the result is a variable-snapshot JSON. It also flags the duration_ms type trap (string values are ignored and fall back to 3000), which is exactly the kind of behavior an agent could not guess.

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?

The purpose is front-loaded in the first clause, and every later sentence carries operational value (permission, non-blocking, type gotcha, interpolation). Minor deductions for a stray doubled period ('。。') and for mixing parameter-level detail into the prose body.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 stating that the result comes back as a variable snapshot JSON. Permission requirements, failure semantics, blocking behavior, and the key parameter pitfall are all covered, which is enough for an agent to call a 5-parameter, 1-required tool correctly.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: duration_ms must be a numeric literal or it is silently replaced by 3000, and string parameters accept ${var} interpolation. require, on_error, and node_timeout_ms are only covered by their schema text.

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 verb and resource: it pops up a Dynamic Island style capsule at the top of the screen and auto-dismisses. That is concretely distinct from a generic notification. It never distinguishes itself from near-identical siblings such as ACTION_TOAST or ACTION_SEND_NOTIFICATION, so an agent must infer which popup tool to pick.

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 through behavioral facts: it is non-blocking, so the next node runs immediately, and it requires host-app registration plus overlay permission. There is no explicit when-to-use or when-not-to-use guidance, and no sibling is named (ACTION_TOAST, ACTION_SEND_NOTIFICATION, ACTION_MINI_SCREEN are the obvious alternatives).

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