Skip to main content
Glama

click

Destructive

Activates a page element by snapshot reference or visible text to perform UI actions, holding risky submissions for user approval and handling browser dialogs.

Instructions

Click an element: ref from the latest snapshot (e.g. "e12"), or its visible text (e.g. "Messages"), which keeps working when the page layout changes.

confirmed: set to true only after the user approved this exact action. Buttons that send, post, buy, delete, connect, etc. are paused until then. accept_dialog: if the click opens an "Are you sure?" browser box, press OK instead of Cancel. dialog_text: if the click opens a browser box that asks for text (a prompt), type this and press 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": {
      "session_id": "<session_id>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
textNo
confirmedNo
session_idYes
dialog_textNo
accept_dialogNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.3
    • addedInput schema / properties / dialog_text
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Dialog Text"
      +}
  2. First observedv0.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description adds the crucial operational rule that send/post/buy/delete/connect buttons are paused pending explicit user approval, plus what happens with browser confirm and prompt boxes. It does not state failure modes (ambiguous match, element missing) or whether the click waits for navigation to settle.

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

Conciseness5/5

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

Targeting information is front-loaded, each parameter gets a compact clause with a concrete example, and no sentence is filler. The parenthetical examples ('e12', 'Messages', 'Are you sure?') earn their space by disambiguating formats.

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 6-parameter, destructive, no-output-schema tool this covers the essentials (targeting, safety gate, dialogs), but omits session_id, ref-vs-text precedence, and post-click behavior such as error reporting or waiting. An agent could still call it correctly in the common case, but edge-case behavior is undocumented.

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 description coverage is 0%, so the description carries the full burden and mostly does: it gives a concrete ref format ('e12'), explains why text is a layout-resilient fallback, and defines the semantics of confirmed, accept_dialog, and dialog_text. Only session_id is left unexplained, and the precedence rule when both ref and text are supplied is unstated.

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?

The description opens with a specific verb+resource ('Click an element') and immediately defines the two targeting modes (ref from latest snapshot vs. visible text). It does not explicitly distinguish itself from siblings like select_option, press_key, or type_text, so an agent must infer which control-surface belongs to which tool.

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

Usage Guidelines3/5

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

There is real conditional guidance for the confirmation gate ('set to true only after the user approved this exact action') and for dialog handling, which is more than most tools offer. However, there is no when-not-to-use guidance and no routing to alternatives such as select_option for dropdowns or type_text for inputs, leaving tool selection to inference.

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