Skip to main content
Glama

click

Triggers the first element matching a CSS selector in a headless browser, enabling AI agents to automate web page interactions.

Instructions

Click the first element matching the CSS selector.

Input Schema

NameRequiredDescriptionDefault
selectorYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.46

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden, yet it does not disclose whether clicking waits for the element, scrolls it into view, what happens if no element matches, or what side effects (e.g., navigation) may occur. It only notes that the first matching element is targeted, leaving critical interaction behavior unclear.

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?

A single, front-loaded sentence that contains no wasted words. The action and targeting rule are conveyed immediately.

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

Completeness2/5

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

For a browser-automation click tool with no annotations and an output schema, the description is missing key behavioral context: whether the click is synchronous, how failures are handled, and what preconditions exist. Output schema may cover return values, but the description is too sparse for the complexity of the action.

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 coverage is 0%, so the schema itself provides no meaning beyond 'Selector: string'. The description compensates partially by clarifying that selector is a CSS selector and that the first matching element is clicked, but it adds no syntax details, examples, or constraints.

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 states a specific verb (click) and target (first element matching the CSS selector), making the basic action clear. However, it does not differentiate this tool from siblings like fill or evaluate, which could also interact with elements.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use click versus alternatives such as fill or evaluate, nor are there any stated prerequisites or exclusions. The agent must infer usage from the tool name and one-sentence description alone.

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