Skip to main content
Glama

alert

Handle browser alert, confirm, and prompt dialogs. Accept, dismiss, retrieve text, or send input to dialogs during automated testing.

Instructions

Handle browser alert/confirm/prompt dialogs. Actions: accept, dismiss, get_text, send_text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
textNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description fails to disclose important behavioral details: it does not mention that the tool synchronously handles the dialog, closes it on accept/dismiss, or throws an error if no dialog is present. Actions like send_text are not explained in terms of preconditions.

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?

The description is concise (one sentence) and front-loaded with the core purpose, followed by a list of actions. It avoids fluff, though it could be slightly more structured to separate parameter descriptions.

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

Completeness2/5

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

Given three parameters and no annotations, the description is too brief. It lacks operational context such as preconditions (dialog must be present), behavior on success/failure, and specifics about each action. The output schema exists, shifting the burden for return values, but the description still needs more detail for safe usage.

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%, so the description must compensate. It lists possible values for the 'action' parameter, adding meaning. However, it does not describe the 'text' parameter (used with send_text) or 'session_id', providing only partial guidance.

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 clearly states that the tool 'Handle browser alert/confirm/prompt dialogs' and lists specific actions ('accept, dismiss, get_text, send_text'), making the purpose unambiguous and distinguishing it from sibling tools like click, open_page, or type_text.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives, such as after a dialog appears or how to handle different dialog types. The description simply lists actions without context.

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/SCV-Consultants/selenium-mcp'

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