Skip to main content
Glama

click

Triggers an element by real mouse event after scrolling it into view. Matches via CSS selector or visible text, handling widgets that require genuine mousedown behavior.

Instructions

Click an element, scrolling it into view first.

On the CDP backend this is a real mouse event at the element's centre, so widgets that only react to genuine mousedown behave correctly.

Args: selector: CSS selector. text: Visible text to match. Combined with selector it narrows within those matches; alone it searches clickable elements. Exact matches win over partial ones, and the innermost match wins. tab_id: Exact tab id. url_pattern: Regex matched against tab URLs. nth: Which match to click, 0-based.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nthNo
textNo
tab_idNo
selectorNo
url_patternNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does it well: it discloses scrolling, a real CDP mouse event at the element's center, and the resulting effect on mousedown-only widgets. It does not mention failure modes or default-tab behavior, but the core side effects are transparent.

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?

The description is compact, front-loaded with the action and key behavioral caveat, and then lists each parameter in a scannable block. No sentence is redundant.

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?

The parameter list is well covered and an output schema exists, so return values are not needed. However, all parameters are optional and the description never says which tab is used when tab_id and url_pattern are absent, nor what happens if no locator is supplied. That is a clear gap for an agent choosing arguments.

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%, and the description compensates by explaining all five parameters, including detailed text-matching semantics and the role of nth. It could be stronger on how tab_id, url_pattern, and the active tab interact when omitted.

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 clear verb and object ('Click an element') and adds the concrete behavior of scrolling it into view. It does not explicitly differentiate this from sibling tools such as eval_js or fill, so it falls short of a 5.

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?

The CDP note implies this tool is for genuine mouse interactions, but the description never says when to prefer it over an alternative or when not to use it. Usage context is implied rather than stated.

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