Skip to main content
Glama

wavexis_dialog_accept

Idempotent

Accept JavaScript alert, confirm, or prompt dialogs during browser automation, optionally supplying prompt text, so page interactions can continue.

Instructions

Accept a JavaScript dialog (alert, confirm, prompt).

Args: input: Dialog accept parameters (prompt_text).

Returns: JSON string with status "ok".

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": {
      "input": "<input>"
    },
    "name": "wavexis_dialog_accept"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the safety profile is covered. The description adds the return shape (status 'ok') and that prompt_text applies to prompt dialogs, but omits behavioral traits an agent would want: what happens if no dialog is present, whether the call blocks, and whether prompt_text is ignored for alert/confirm.

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?

Short and front-loaded, with the core action in the first sentence. The Sphinx-style 'Args:'/'Returns:' scaffolding is slightly redundant given a structured schema and output schema, but it costs little.

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?

An output schema exists, so the brief return note is sufficient; purpose and parameters are covered. What is missing is modal-dialog context — blocking semantics, behavior when no dialog is open, and how accept differs from dismiss — which matters for a single-param mutation 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?

Reported schema coverage is 0%, but the description names only the nested 'prompt_text' field and says nothing about 'session_id' linkage beyond the schema's own nested text. It adds marginal meaning ('Text for prompt dialogs' context) without fully compensating for the thin top-level documentation of the 'input' wrapper.

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 verb and resource ('Accept a JavaScript dialog') and enumerates the affected dialog types (alert, confirm, prompt). The accept/dismiss pairing with wavexis_dialog_dismiss is self-evident from the verb, though the description never explicitly contrasts the two.

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 explicit when-to-use or when-not-to-use guidance, no mention that dialogs block page execution, and no pointer to wavexis_dialog_dismiss as the alternative action. The usage is only implied by the verb 'accept'.

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