Skip to main content
Glama

safari_handle_dialog

Handle Safari alert, confirm, and prompt dialogs by accepting or dismissing them, or entering text for prompt inputs. Set up a handler for the next dialog to automate browser interactions.

Instructions

Set up handler for the next alert/confirm/prompt dialog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoText to enter for prompt dialogs
actionNoAccept or dismiss (default: accept)
receiptNoTab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv2.18.1
    • addedInput schema / properties / receipt
      Added value: +{
      +  "description": "Tab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents)",
      +  "type": "string"
      +}
  2. Addedv2.11.6
  3. Removedv2.11.3
  4. Addedv2.10.9
  5. Removedv2.10.8
  6. Addedv2.10.5
  7. Removedv2.10.4
  8. First observed

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It only says 'Set up handler' without explaining that the handler is one-time, that it automatically consumes the next dialog, or what happens if no dialog appears. An agent is left uncertain about side effects and lifecycle, which is critical for a setup action.

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 description is a single, front-loaded sentence that uses the verb 'Set up' immediately. It is efficient and contains no wasted words. However, it is minimal to the point of lacking depth, but that is more a completeness issue than conciseness.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description does not explain the necessary sequence: that this must be called before a dialog appears and that it applies only to the next dialog. Without this, an agent might call it after a dialog has already shown or expect it to handle multiple dialogs. The schema's receipt parameter hints at pinning, but the overall behavioral context is insufficient for a setup tool with no annotations.

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?

The schema has 100% description coverage, with each parameter clearly documented (text for prompt dialogs, action with enum and default, receipt for tab pinning). The tool description adds no additional parameter context beyond what the schema already provides. This meets the baseline for high coverage.

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?

The description clearly states the specific verb 'Set up' and the resource 'handler for the next alert/confirm/prompt dialog'. It is unambiguous and distinctly different from all sibling tools, which focus on navigation, clicking, reading, or extraction. No other sibling handles dialog interactions, so this tool's purpose is immediately clear.

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?

The description implies the tool is for preparing to handle a dialog that will appear, but it does not explicitly state when to call it (e.g., before triggering an action that may cause a dialog). It also does not mention alternatives because there are none among siblings, but the timing requirement is left to inference. This is a common gap for setup tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/achiya-automation/safari-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server