Skip to main content
Glama

dismiss_popup

Closes cookie banners, newsletter prompts, app promos, and similar pop-ups via close/“Not now” or Escape. Reads them first so task-relevant requests can be answered instead.

Instructions

Close the pop-up on top of the page (cookie banner, "share your info", newsletter, app promo...) with its close / "Not now" button, or Escape if it has none. Read the pop-up first: if it asks something the user's task depends on, answer it with click instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>"
    },
    "name": "dismiss_popup"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false, readOnlyHint=false, and openWorldHint=true, so the description adds real value by disclosing the dismissal mechanism (close / 'Not now' button, else Escape) and the read-before-dismiss workflow. It stops short of saying what happens if no pop-up is present (error vs. no-op) or what the call returns.

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?

Three tight sentences, front-loaded with the action and resource, followed by the mechanism and the decision rule. No filler or restatement of the title.

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?

For a one-parameter, non-destructive UI tool with annotation coverage of the safety profile and no output schema, the description covers mechanism, fallback, and the key routing decision. The only real gap is the no-popup-present behavior, which matters operationally but is secondary.

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 0% for the single session_id parameter, so the description would ideally explain it, and it does not mention it at all. However, the parameter name is unambiguous, required, and consistent across every sibling tool, so an agent can infer its meaning without help.

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?

The description opens with a specific verb and object: 'Close the pop-up on top of the page,' then enumerates the concrete cases (cookie banner, 'share your info', newsletter, app promo). It also distinguishes itself from the sibling 'click' by stating when to answer instead of dismiss.

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

Usage Guidelines5/5

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

It gives explicit when-to-use (a pop-up is covering the page), a when-not-to (the pop-up asks something the user's task depends on), and names the alternative to use in that case ('click'). It also prescribes sequencing: read the pop-up first, then dismiss.

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