Skip to main content
Glama

dialog

Handles browser alert, confirm and prompt dialogs by checking their status or accepting and dismissing them, with policy-based automatic handling to keep automation unblocked.

Instructions

Consulta o responde alert, confirm y prompt. policy define el manejo automático.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dialog"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoPestaña objetivo. Por defecto la pestaña actual del agente.
actionNo
policyNo
promptTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden and mostly fails: it never says that dialogs block page execution, whether accept on a prompt requires promptText, what manual policy means in practice, or whether unanswered dialogs time out. Only the vague 'automatic handling' remark adds behavior beyond the schema.

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

Conciseness3/5

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

Two short sentences with no filler, and the core capability is front-loaded. However, the terseness crosses into under-specification rather than disciplined brevity.

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?

A four-parameter tool that mutates page state and can supply text into prompts, with no annotations, no output schema and 75% of parameters undocumented. The description does not come close to filling that gap — an agent cannot reliably know which parameters matter for which action.

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 coverage is only 25% — tabId is documented, but action, policy and promptText are not. The description mentions policy but only as 'automatic handling', and never explains that promptText supplies input for prompt dialogs or how the policy enum interacts with explicit action calls.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (alert, confirm and prompt dialogs) and both modes of operation (query or respond), which lets an agent know this is the dialog-handling tool. It does not name or differentiate itself from any sibling, but the resource is distinctive enough on its own.

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?

The phrase 'policy define el manejo automático' hints that handling can be automated, but there is no explicit guidance on when to use status versus accept/dismiss, when to set policy, or what happens if a dialog appears mid-execution. Usage is only inferable from the verb pair.

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