Skip to main content
Glama

browser_click

Click page elements by CSS selector to automate interactions and capture a screenshot of the result for verification.

Instructions

Click an element on the page by CSS selector.

Returns a screenshot of the result. Common selectors:

  • "#login-button" — element with id

  • ".submit-btn" — element with class

  • "button:contains('Submit')" — button by text

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
selectorYesCSS selector for element to click
wait_after_msNoMilliseconds to wait after click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the return value ('Returns a screenshot of the result'), which is genuinely useful, but says nothing about failure behavior (missing selector, non-interactable element), side effects, or whether it scrolls/wait-for-element before clicking.

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?

Front-loads the action in one sentence, then the return value, then a short example list; every element is relevant and there is no filler. The bullet list is slightly longer than strictly needed but earns its place via the non-obvious selector syntax.

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 mutation-style interaction tool with no annotations and no output schema, the description covers the input and return shape but omits error/precondition behavior an agent would need to retry or recover. It is adequate but leaves meaningful gaps given the absent annotations.

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 100%, making 3 the baseline, but the description goes beyond the schema by showing selector forms, including the non-standard ':contains('Submit')' pseudo-class, which an agent could not infer from 'CSS selector for element to click'. It adds no detail on wait_after_ms beyond the schema default.

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 on the page by CSS selector') and adds the return value, so an agent knows exactly what action this performs. It does not explicitly contrast with siblings such as browser_type or browser_see, leaving differentiation to inference.

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 only implied: clicking is naturally used as an interaction step, but the description never says when to prefer this over siblings or what preconditions apply (e.g., element must be visible or page loaded). No exclusions or alternatives are named.

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