Skip to main content
Glama

System alert

answer_alert

Read and answer open system alerts or permission prompts on iOS and Android apps, choosing allow, deny, or a button label in any language, then return the resulting screen or buttons.

Instructions

Read or answer the open system alert, as a permission prompt; an app's own dialog: tap_screen. answer: a button's label to touch, or allow (least: once, else while using) or deny, in any language. Returns its text and buttons, or the screen after; NOT_FOUND if none is open.

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

Input Schema

NameRequiredDescriptionDefault
readNo
answerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.4

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false; the description adds genuine behavioral detail beyond that: it returns the alert's text and buttons, or the post-action screen, and returns NOT_FOUND when nothing is open. It stops short of flagging that answering 'allow' durably grants a permission, which matters for an agent acting on a user's behalf.

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?

Dense and front-loaded: capability first, sibling routing second, parameter rules third, return/error behavior last. The telegraphic punctuation ('as a permission prompt; an app's own dialog: tap_screen') is terse enough to risk a misread but wastes no words.

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 does cover return shape and the NOT_FOUND case, and it handles one of two parameters thoroughly. The unaddressed 'read' enum (diff/full/none) is a real hole for a tool whose whole purpose includes reading an alert's contents.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden. It explains 'answer' well (button label, allow with once/while-using variants, deny, any language) but never explains the 'read' parameter or its diff/full/none enum values, leaving half the input surface undocumented.

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 pair (read/answer) and resource (the open system alert, i.e. an OS permission prompt), and explicitly distinguishes itself from the sibling that handles in-app dialogs (tap_screen). An agent can route correctly without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the exact when-to-use split: this tool for system/permission alerts, tap_screen for an app's own dialog. It also spells out acceptable answer inputs (a button label, or allow/deny) so the agent knows what values are legal before calling.

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