Skip to main content
Glama

iphone_alert

Read and answer on-screen alerts or permission dialogs on a real iPhone, then accept, dismiss, or tap a named button. Confirms first whether any alert is shown.

Instructions

Read or answer the alert or permission dialog on screen (location, notifications, camera, tracking, 'Open in app?', error messages).

Read first, then accept or dismiss – or tap one named button. Permission dialogs change privacy settings:
ask the user before allowing access to location, contacts, photos, camera or microphone. If no alert is
shown it says so and taps nothing.

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

Input Schema

NameRequiredDescriptionDefault
actionNo'read' returns the alert's text and buttons without touching it; 'accept' taps the confirming button (e.g. 'Allow', 'OK'); 'dismiss' taps the cancelling one (e.g. 'Don't Allow', 'Cancel').read
buttonNoExact label of the button to tap instead of the default one, as listed by action='read'.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare the generic profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false). The description adds the genuinely non-obvious consequence: permission dialogs mutate privacy settings, so the agent must ask the user before allowing sensitive access. It also discloses the no-op path when no dialog is present, which materially informs retry behaviour.

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?

Three short sentences, front-loaded with the core action, then workflow, then safety caveat, then failure behaviour. Nothing is filler, though the parenthetical dialog list is slightly long and the privacy sentence could be tightened.

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?

With an output schema, full parameter coverage, and annotations present, the description covers the safety-critical and workflow-relevant behaviour well. One gap remains for an agent: it does not say whether the call waits for a dialog to appear or returns immediately, which matters given siblings like iphone_wait_for.

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 coverage is 100% and the enum values are already documented in-schema (read returns text/buttons, accept/dismiss map to confirm/cancel labels). The description restates the read-then-act workflow and the "tap one named button" idea that the button param's own description already gives ("as listed by action='read'"). Baseline 3 applies; little is added beyond the schema.

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?

"Read or answer the alert or permission dialog on screen" names the verb (read/answer) and the exact resource (system alert / permission dialog), then enumerates the concrete dialog types it covers (location, notifications, camera, tracking, 'Open in app?', errors). No sibling tool in the list handles modal dialogs, so it is trivially distinguishable from iphone_tap, iphone_tap_text and iphone_ui_tree.

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

Usage Guidelines4/5

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

It prescribes an explicit operating order – "Read first, then accept or dismiss – or tap one named button" – and states the fallback when nothing matches ("if no alert is shown it says so and taps nothing"). It also sets a precondition (ask the user before granting location/contacts/photos/camera/mic access). It stops short of naming a sibling alternative for the no-alert case (e.g. wait or re-screenshot), so it is not a full when/when-not routing statement.

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