Skip to main content
Glama

browser_dismiss_overlays

Dismiss visible popups, modals, tooltips, banners, and confirmation prompts in one call to unblock interrupted browser flows and return what was closed.

Instructions

Dismiss visible popups, modals, tooltips, banners, and "Are you sure?"-style overlays in one call. Heuristic-based: finds close affordance via aria-label, text content (Skip/Cancel/Ikke nu/Don't show/Got it/Close), or × character button. Use when a flow is interrupted by unexpected dialogs (cookie banners, onboarding tooltips, draft-confirm prompts on Meta Ads, etc.). Returns list of what was dismissed.

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

Input Schema

NameRequiredDescriptionDefault
scopeNonon_critical (default): skip dialogs containing editable form inputs (preserves user data). aggressive: dismiss everything.
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.
max_passesNoNumber of dismissal passes (some overlays reveal others when closed). Default: 3

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the detection heuristic (aria-label, text content, × character), lists the literal strings matched, notes that overlays can reveal others (justifying max_passes), and states the return value. It omits failure behavior — what happens when nothing is found, or whether it errors versus returning an empty list.

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 sentences, front-loaded with what is dismissed, then how, then when. The parenthetical string list ("Skip/Cancel/Ikke nu/Don't show/Got it/Close") is slightly noisy but earns its place by showing the multilingual matching behavior.

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?

No output schema exists, and the description supplies the return contract ("list of what was dismissed"). Given three optional parameters and no annotations, the definition covers mechanism, trigger, and result adequately; only error/no-op behavior is unstated.

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%, so the schema already fully documents scope, partition, and max_passes, and the baseline of 3 applies. The description mentions "some overlays reveal others when closed," which implicitly motivates max_passes, but adds no syntax or default details 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?

States a specific verb+resource (dismiss overlays) and enumerates the exact overlay types it targets (popups, modals, tooltips, banners, confirm prompts). It also discloses the mechanism (heuristic close-affordance detection), so an agent understands what this does that browser_click on a guessed selector would not.

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?

"Use when a flow is interrupted by unexpected dialogs" gives a clear trigger, reinforced with concrete scenarios (cookie banners, onboarding tooltips, draft-confirm prompts). It does not name an alternative or exclusion — notably it never distinguishes itself from the sibling browser_handle_dialog, which an agent may see as overlapping.

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