Skip to main content
Glama

page_dismiss_modal

Detect and dismiss cookie banners, consent dialogs, popups, and overlays, returning details of what was removed.

Instructions

Detect and dismiss common modals: cookie banners, consent dialogs, popups, overlays. Returns what was dismissed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.3

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool detects and dismisses modals and returns what was dismissed, which is useful. However, it does not mention side effects, failure behavior, or the limitation of what counts as a 'common' modal.

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

Conciseness5/5

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

Two short sentences with the scope front-loaded and no filler. The list of modal examples is compact, and the return-value note earns its place.

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

Completeness3/5

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

For a tool with no annotations and no output schema, the description communicates the core behavior and the return value. Missing context includes what happens when no modal is detected, prerequisites, and side-effect caveats, but the essential invocation intent is clear.

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 0% and the description does not explain session_id or page_id. The parameter names are relatively self-explanatory in context, but the description adds no meaning beyond the schema's bare field names.

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 clear verb-resource pair: dismiss common modals, and enumerates specific examples (cookie banners, consent dialogs, popups, overlays). It also notes the return value, which distinguishes it from other page interaction tools like page_click or page_press.

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 modal types listed imply when to use it, and it is the only dismiss-focused sibling, but there is no explicit when-not-to-use guidance or mention of alternatives. No prerequisites or caveats are stated.

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