Skip to main content
Glama

page_click

Clicks elements by CSS selector. For form controls (buttons, inputs), uses a JavaScript click; for links and other elements, dispatches real mouse events at coordinates. Returns 'ok' on success.

Instructions

Click an element by CSS selector. For form controls (buttons, inputs), uses a JS click; for links and other elements, dispatches real mouse events at coordinates. Prefer page_click_ref when you have a page_a11y ref — it scrolls into view first and is more reliable on web-component UIs. Returns 'ok' on success.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYes
selectorYesCSS selector.
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses the click mechanism for form controls vs links, that real mouse events are dispatched at coordinates, and the success return value. This is solid, though it omits error/not-found behavior.

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?

Three short sentences, each with a distinct job: core action, behavior detail, and sibling guidance. No wasted words, and the most actionable information is front-loaded.

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

Completeness4/5

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

For a simple three-parameter click tool, the description covers purpose, behavior, return value, and the main alternative. It does not document error cases or prerequisite page state, but these are minor gaps given the tool's simplicity.

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 description coverage is only 33%, yet the description adds no parameter-level meaning beyond what the schema already says. It repeats that the selector is a CSS selector but does not explain session_id or page_id, leaving the agent to infer their roles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/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 by CSS selector. It also distinguishes itself from the sibling page_click_ref by noting when that tool is preferable, so an agent can tell them apart.

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

Usage Guidelines5/5

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

Explicitly routes the agent to page_click_ref when a page_a11y ref is available, explaining that it scrolls into view and is more reliable on web-component UIs. This gives clear when-to-use guidance relative to the closest alternative.

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