Skip to main content
Glama
grandMA2 MCP
by drohi-r

answer_console_popup

Answer a console pop-up flagged as pending_popup by selecting an option number to clear the blocking dialog, with cancel or destructive confirmation when required.

Instructions

Answer a console pop-up a previous tool reported as pending_popup.

Pass the option number from pending_popup.options. Choosing the Cancel
option is always allowed (give its number as cancel_option); any other
answer can confirm an overwrite or delete and needs confirm_destructive=True.

Args:
    choice: Option number to press (e.g. 1 for "Ok").
    cancel_option: The pop-up's Cancel option number, when known.
    confirm_destructive: Required for any answer other than Cancel.

Returns:
    str: JSON with command_sent and raw_response.

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": {
      "choice": "<choice>"
    },
    "name": "answer_console_popup"
  }
}

Input Schema

NameRequiredDescriptionDefault
choiceYes
cancel_optionNo
confirm_destructiveNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden and largely does: it warns that non-Cancel answers can confirm an overwrite or delete, defines the confirm_destructive gate, and documents the return payload (command_sent, raw_response). It leaves open what happens when a destructive answer is given without the flag (hard error? no-op?) and whether the pop-up is consumed.

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?

Front-loads the purpose, then the safety rule, then Args/Returns blocks; every line is functional and there is no filler. The Returns block lightly duplicates what the output schema already provides, which is the only waste.

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

Completeness3/5

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

For a destructive UI-interaction tool with zero annotation coverage, the description covers purpose, gating, and output but omits failure behavior and post-call state (e.g., whether the pop-up is dismissed, what happens if the popup vanished). Enough to call it correctly in the common case, not enough for edge cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must define all three parameters, and it does: choice is the option number to press with a concrete example, cancel_option is the pop-up's Cancel number when known, and confirm_destructive's required condition is spelled out. Only minor gaps remain (that choice is an integer indexing pending_popup.options, and the meaning of the cancel_option default of null).

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?

Names a specific verb and resource ("Answer a console pop-up") and ties it to a concrete trigger state ("pending_popup" reported by a previous tool), which is something no sibling in the catalog handles. An agent can pick this out of the list without opening the schema.

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 trigger condition is explicit (only when a prior tool reported pending_popup), and it states the selection rule: Cancel is always allowed, anything else needs confirm_destructive=True. It stops short of describing what to do if the pop-up is stale or already dismissed, so no true when-not guidance.

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

Deploy Server

Other Tools