Skip to main content
Glama

handle_popup

Inspect, accept, reject, or dismiss browser popups and consent iframes; scrolls terms to unlock disabled buttons and never assumes consent before acting.

Instructions

Inspect a popup or explicitly accept/reject/dismiss it. Never assumes consent. Handles consent iframes and scrolls terms to unlock disabled buttons. Use the user's requested choice; reject never falls back to accept. popup_closed confirms closure; action_sent means do not repeat blindly.

Input Schema

NameRequiredDescriptionDefault
actionNoinspect
max_scrollsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/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 meaningful behavior: never assumes consent, handles consent iframes, scrolls terms to unlock buttons, and reject does not fall back to accept. It also explains output statuses, though it omits explicit no-popup/error behavior and detailed side effects of accepting.

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?

The purpose is front-loaded in the first sentence, and the remaining sentences each add safety, behavior, or output semantics. It is dense but efficient, with no filler.

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?

Given no annotations and 0% schema coverage, the description covers purpose, behavioral caveats, and output statuses well. It still leaves max_scrolls and explicit no-popup/error handling unspecified, so it is not fully complete for a low-schema-coverage tool.

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 0%, so the description must compensate. It names the four action values and explains the safety implication of reject, but never mentions the max_scrolls parameter, leaving one of two parameters semantically uncovered.

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 specific verbs (inspect/accept/reject/dismiss) and resource (popup), and explicitly covers consent iframes and disabled buttons. It is clearly scoped to popup handling, distinguishing it from generic siblings like smart_click and mouse_click.

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?

Gives clear usage guidance: use the user's requested choice, inspect is the default framing, and reject never falls back to accept. It does not explicitly say when not to use it or when a generic sibling should be used instead.

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