Skip to main content
Glama
camoufox-agent

camoufox-agent

by VolanDeVovan

handle_dialog

Arm OK/cancel or prompt text for the next alert, confirm, or prompt before the action that opens it, or set a standing rule; otherwise such dialogs are dismissed automatically.

Instructions

Arm the answer for the next alert / confirm / prompt your action opens in a tab, or set a standing rule. Without it such a dialog is dismissed (and the reply of the action that caused it says so). Arm it before the action that opens the dialog. A dialog no agent action opened is left to the user; while it is open, handle_dialog answers it.

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": "handle_dialog"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoRemove armed answers and the standing rule.
tabIdNoTab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session.
acceptNotrue: OK / accept. false: Cancel / dismiss.
standingNoApply to every dialog in this tab until cleared, not only the next one.
prompt_textNoText to enter into a prompt().

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the default dismissal behavior, that the resulting action reply reports it, the required call ordering, and the ownership rule for user-opened dialogs plus live answering while a dialog is open. It does not say what happens if multiple arms are queued, whether an armed answer survives navigation, or what the call itself returns, which keeps it short of a 5.

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?

Purpose is front-loaded, then default behavior, timing, and the edge case follow in a logical order with no filler. It is dense and slightly run-on in the final sentence, but every clause carries distinct information.

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?

For a five-parameter tool with no annotations and no output schema, the description covers the critical semantics: timing, default behavior, ownership, and standing versus one-shot. Return-value behavior is only alluded to via the action's reply, which is the main remaining gap.

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 100%, so every parameter already has its own documentation; the description adds the conceptual frame of 'arming' versus a 'standing rule' that gives clear/standing meaning, but it does not explain interactions such as what accept and prompt_text do when no dialog is pending, or ordering with clear. Baseline 3 is appropriate.

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 opens with a concrete verb and resource: 'Arm the answer for the next alert / confirm / prompt your action opens in a tab, or set a standing rule.' The arming model is spelled out precisely enough that an agent knows exactly what state this tool changes, and no sibling tool in the catalog handles dialogs, so confusion is unlikely.

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

Usage Guidelines5/5

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

It states the ordering constraint explicitly ('Arm it before the action that opens the dialog'), states the consequence of not using it (the dialog is dismissed and the action's reply says so), and carves out the exclusion case where a dialog was not opened by an agent action and is therefore left to the user. That is when-to-use, when-not, and the default behavior in three sentences.

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