Skip to main content
Glama

click

Presses Firefox page elements by element ref or screenshot x/y coordinates, with optional tab targeting and left, right, or double mouse buttons.

Instructions

Click an element by ref, or at x/y (CSS pixels from screenshot).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
refNoElement ref (ref_N) from read_page or find.
tabIdNoTab to act on. Omit for the active tab.
buttonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully discloses that x/y are CSS pixels tied to the screenshot, but says nothing about side effects of a click (navigation, form submission, destructive actions), failure behavior for missing refs, or whether the element is scrolled into view first.

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?

A single sentence that front-loads the action, offers the primary mode first, and packs the coordinate-unit caveat into a tight parenthetical. Nothing is wasted.

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 five-parameter, zero-required tool with no annotations and no output schema, the description covers the core invocation paths but leaves mode precedence, button behavior, and failure/return behavior undocumented. It is viable but thin for the complexity involved.

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 coverage is 40%: ref and tabId are documented in the schema, while x, y and button are not. The description adds genuine meaning for the undocumented x/y pair by specifying CSS-pixel units relative to the screenshot, but it never explains the button parameter, whose 'left/right/double' enum carries non-obvious double-click semantics.

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?

Specific verb 'click' plus the two targeting modes (element ref or x/y coordinates) makes the action and its resource immediately clear. It is implicitly distinguishable from siblings like find or form_input, though it never explicitly contrasts itself with any of them.

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 'by ref, or at x/y' phrasing implies a preference order (use ref when available, fall back to coordinates) and ties refs to read_page/find. It gives no when-not guidance, no statement about which mode wins if both are supplied, and no advice on post-click behavior such as waiting.

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