Skip to main content
Glama
Chrome Testing MCP Server

Chrome Testing MCP Server

by prabhubng

Click Element

chrome_click

Clicks a page element found by CSS selector, with a configurable wait timeout, so automated Chrome tests can trigger buttons, menus, and links.

Instructions

Click an element on the page.

Finds an element by CSS selector and clicks it.

Args:

  • selector (string): CSS selector of element to click (required)

  • timeout (number): Maximum wait time for element (default: 5000)

Returns: Confirmation of click action.

Examples:

  • Click button: { selector: ".dx-button" }

  • Click menu item: { selector: "[data-testid='menu-item']" }

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

Input Schema

NameRequiredDescriptionDefault
timeoutNoMaximum wait time for element
selectorYesCSS selector of element to click

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, and openWorld=false, so the description's remaining burden is modest. It adds useful context that the tool waits for the element up to a timeout and returns a confirmation, but says nothing about what happens on timeout or when the element is missing, which is the key failure mode for a click tool.

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?

It is front-loaded with the action, then mechanism, then args, returns, and examples in a scannable structure. Minor waste in the near-duplicate opening lines and an Args section that repeats the schema verbatim.

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 two-parameter tool with annotations present and no output schema, the description covers mechanism, timing, and return value adequately. It leaves out failure behavior on timeout, whether the element is scrolled into view, and required browser state, which an agent needs before invoking it.

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 100%, so the schema already documents both selector and timeout, making 3 the baseline. The description adds marginal value through concrete selector examples (".dx-button", "[data-testid='menu-item']") and restating the 5000ms default, but introduces no constraints beyond the schema.

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?

"Click an element on the page" plus "Finds an element by CSS selector and clicks it" gives a specific verb, resource, and mechanism, which distinguishes it from siblings like chrome_type or chrome_wait_for_element. It stops short of explicitly naming an alternative, so it is clear but not fully sibling-differentiated.

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 statement of when to use this versus chrome_type, chrome_wait_for_element, or chrome_execute_script, and no preconditions such as requiring a launched browser or a loaded page. The only implicit usage signal is that the target must be addressable by CSS selector.

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