Skip to main content
Glama
Browser MCP Server

Browser MCP Server

click_element

Clicks a browser element by its mark_page index and simulates human-like mouse movement for reliable page interactions.

Instructions

Click element by index (from mark_page) with human-like mouse movement.

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": {
      "index": "<index>"
    },
    "name": "click_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYesElement index from mark_page
buttonNo
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does add one genuine behavioral detail — "human-like mouse movement" — signaling simulated cursor motion rather than a synthetic dispatch, which is valuable. It omits whether the element is scrolled into view, whether the tool waits for the element, whether the click can navigate the page, and what error is returned for an invalid index.

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?

A single dense sentence with the action front-loaded and the index source immediately qualified. Nothing is wasted, though it is so terse that the missing behavioral context never gets a chance to appear.

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 mutation-capable browser tool with no annotations, no output schema, and two undocumented parameters, the description is thin. An agent cannot learn from it what happens after a click (navigation, dialog, DOM change) or how button/pageId affect targeting.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: index is documented in both schema and description (redundantly, both say "from mark_page"), while button (left/right/middle) and pageId have no description anywhere. The description adds essentially no meaning beyond the schema and leaves two of three parameters undefined.

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 element by index") and ties the index to its source (mark_page), so the action is unambiguous. However, it does not distinguish itself from the sibling "click" or "click_in_frame" tools, which an agent must disambiguate by other means.

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 parenthetical "from mark_page" implies the prerequisite that the page must be marked before clicking, which is useful implied guidance. There is no explicit when-to-use versus "click" or "click_in_frame", and no statement about failure conditions if the index is stale.

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