Skip to main content
Glama
jumodada

DrissionPage MCP Server

by jumodada

Respond To Dialog

page_dialog_respond
Destructive

Resolve pending JavaScript dialogs by accepting or dismissing alerts, confirms, and prompts, with optional text input for prompt dialogs.

Instructions

Accept or dismiss one pending alert, confirm, or prompt through a capability-probed native DrissionPage dialog path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
timeoutNoMaximum seconds to wait for a pending dialog. Zero checks immediately; an already-pending dialog still receives a bounded native response budget.
prompt_textNoText for an accepted prompt. The value is never returned.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already indicate destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description adds 'one pending' and 'capability-probed' but does not disclose side effects such as page state after dismissal or behavior when no dialog is pending. The added context is minimal.

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 description is a single sentence, front-loaded with the core action, and contains no filler or redundant phrases.

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 the tool's moderate complexity and the presence of annotations and an output schema, the description covers the core function adequately. However, the phrase 'capability-probed native DrissionPage dialog path' is vague and could be replaced with clearer prerequisites or behavior details.

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 67%, with timeout and prompt_text already documented. The description does not add meaningful parameter semantics; it only maps the action to accept/dismiss and names the dialog types, which is slight but not substantial over 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?

The description uses a specific verb combination 'Accept or dismiss' and clearly identifies the resource as 'one pending alert, confirm, or prompt.' This distinguishes it from sibling tools like page_dialog_observe and other page manipulation tools.

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?

The description conveys clear context: it is used to respond to pending dialogs. However, it does not explicitly mention alternatives (e.g., page_dialog_observe for observation only) or exclusions like when no dialog is pending.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jumodada/Drissionpage-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server