Skip to main content
Glama

browser_click

Clicks the first element matching a CSS selector in a target browser tab, enabling AI agents to interact with web pages.

Instructions

Click the first element matching a CSS selector.

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

Input Schema

NameRequiredDescriptionDefault
tabNotab to target: 0-based index or URL/title substring; defaults to first tab
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses almost nothing. It does not say what happens if no element matches, whether it waits for the element, whether the page must already be loaded, or what the tool returns on success or failure.

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?

One short sentence with the action and targeting rule front-loaded; there is no filler or redundancy. The terseness is efficient rather than padded, though it leaves obvious information gaps.

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?

With no annotations, no output schema, and only partial parameter documentation, the definition is thin for a browser-mutation tool where failure modes matter. An agent knows what it does but not the preconditions or the outcome, which is a clear gap for this complexity level.

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 50%: the 'tab' parameter is documented in the schema, but 'selector' has no schema description at all. The description partially compensates by clarifying that only the first match is clicked, which is genuine semantics beyond the schema, but it says nothing about selector syntax or the default tab behavior.

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 names a specific verb ('Click') and resource ('the first element matching a CSS selector'), which is unambiguous about the action. It does not explicitly contrast with siblings like browser_fill or browser_eval, but the verb is distinctive enough that an agent can select it correctly without opening the schema.

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 guidance on when to use this rather than browser_fill, browser_eval, or browser_text, and no stated prerequisites such as needing a started browser or a navigated page. The agent must infer the entire usage context from the name alone.

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