Skip to main content
Glama

click

Destructive

Triggers an element matching a Playwright selector, waiting until it is visible and actionable and suggesting similar elements if the target cannot be acted on.

Instructions

[Agent Browser] Click an element matching the selector. Supports Playwright selectors: css, text='...', xpath=..., :has-text(). Auto-waits for element to be visible and actionable. On failure, returns suggestions for similar visible elements.

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": {
      "selector": "<selector>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
selectorYes

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavior: it auto-waits for visibility and actionability, and on failure returns suggestions for similar visible elements — useful for retry/error handling that annotations do not convey.

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?

Four short lines, front-loaded with the core action, then selector dialect, then wait semantics, then failure behavior. No filler sentences and nothing repeated from the schema or annotations.

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 one-parameter browser action tool with an output schema already present, the description covers the critical gaps: selector formats, implicit waiting, and failure feedback. The remaining omission is behavior when multiple elements match the selector, which matters given a click_nth sibling exists.

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%, with the single parameter documented only as a bare string titled 'Selector'. The description compensates well by enumerating accepted Playwright selector forms (css, text='...', xpath=..., :has-text()), which is the main thing an agent needs to construct a valid call.

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: 'Click an element matching the selector.' This is unambiguous and cannot be confused with read-style siblings like text or attr. It stops short of differentiating from click_nth, which is the nearest sibling and would benefit from an explicit distinction.

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?

Usage is implied by the verb 'click' and reinforced by the supported selector syntax, so an agent knows this is the interaction tool for a matched element. However, there is no explicit guidance on when to choose click versus click_nth, fill, or evaluate, and no stated preconditions beyond 'element must be visible and actionable'.

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