Skip to main content
Glama
Kurtzi9
by Kurtzi9

browser_handle_dialog

Destructive

Accept or dismiss browser dialogs, including alerts, confirms, and prompts, and supply text when a prompt appears.

Instructions

Handle a dialog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
acceptYesWhether to accept the dialog.
promptTextNoThe text of the prompt in case of a prompt dialog.

Schema Changelog

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

  1. First observedv0.0.77

TDQS

C2/5.0
Behavior1/5

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

The description adds no behavioral transparency beyond the annotations. Annotations already indicate destructiveHint=true and readOnlyHint=false, but the description does not explain what handling a dialog actually does, what side effects occur, or how promptText is used. It discloses no additional behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short, but it earns no place because it repeats the tool name and title. This is under-specification rather than effective 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?

For a tool with no output schema and minimal guidance, 'Handle a dialog' is not complete enough. The agent is left to infer when dialogs occur, what accepting versus dismissing means, and how promptText relates to prompt dialogs. The schema helps with parameter syntax but not operational context.

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 accept and promptText are already documented. The description adds no parameter-level detail, which is acceptable under the baseline for full schema coverage, but it also does not clarify operational nuances such as accept=false meaning dismiss.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Handle a dialog' simply restates the tool name and title, making it a tautology. It names the resource but uses the vague verb 'handle' without specifying whether the dialog is accepted, dismissed, or otherwise acted upon.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool, such as when a browser JavaScript dialog appears or that the dialog must be handled before continuing browser interaction. It also does not mention any alternatives or conditions for using accept versus promptText.

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

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/Kurtzi9/playwright-mcp-render-mto6ljjz'

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