Skip to main content
Glama

browser_handle_dialog

Accepts or dismisses a JavaScript dialog on a tab, optionally sending prompt text, and returns the dialog's original details and whether it was accepted.

Instructions

Accept/dismiss a JS dialog and return its original details and accepted.

Input Schema

NameRequiredDescriptionDefault
acceptYes
tab_handleYes
prompt_textNoResponse sent to the website for a prompt dialog.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral-disclosure burden. It says the tool accepts/dismisses and returns original details, but does not explain side effects, blocking behavior, failure modes, or interaction with prompt dialogs.

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 with no wasted text. However, the phrase 'return its original details and accepted' is slightly awkward and could be clearer.

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 an unannotated browser-automation mutation tool with three parameters, no output schema, and low schema coverage, the description is too thin. It does not describe return shape, tab targeting, prompt handling, or expected dialog states.

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 only 33%, and the description does little to compensate. It implies the accept/dismiss choice but does not explain tab_handle or clarify when prompt_text is required.

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 states a specific verb and resource: accept/dismiss a JS dialog. It is clear enough to distinguish the tool from most browser siblings, though it does not explicitly contrast with alternatives.

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 explicit guidance on when to call this tool, what prerequisite state must exist, or how it relates to sibling tools. The agent must infer that a JS dialog must already be open.

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