Skip to main content
Glama

click

Click elements in Electron applications using Playwright selectors or snapshot references. Configure button, click count, position, and force options for precise interaction control.

Instructions

Click an element. Pass selector (Playwright selector) or ref (from a snapshot). Pass force: true to skip actionability checks when an overlay is in the way.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesPlaywright selector. Alternative to ref.
refNoRef number from a snapshot call. Alternative to selector.
timeoutMsNoDefault 5000.
buttonNoDefault left.
clickCountNoDefault 1. Use 2 for double-click.
forceNoSkip actionability checks. Useful when an overlay is intercepting pointer events.
positionNoClick at an offset inside the element (default is centre). Useful for hitting specific sub-regions.
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It usefully describes the 'force' parameter's purpose (skipping actionability checks for overlays), which adds context beyond the schema. However, it doesn't cover other important behaviors like error handling, what happens on failure, or interaction with the UI state, leaving gaps for a mutation tool.

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?

The description is extremely concise with just two sentences, front-loading the core purpose and efficiently covering key parameter usage. Every word earns its place with no redundancy or fluff, making it easy for an agent to parse quickly.

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 UI interaction tool with 7 parameters, no annotations, and no output schema, the description is somewhat incomplete. It covers the basic action and a key parameter nuance, but doesn't address potential side effects, error conditions, or what constitutes successful execution. Given the complexity and lack of structured data, more behavioral context would be helpful.

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 all parameters thoroughly. The description adds minimal value by briefly mentioning 'selector' and 'ref' alternatives and the 'force' parameter's use case, but doesn't provide additional semantic context beyond what's in the schema. This meets the baseline for high schema coverage.

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?

The description clearly states the action ('Click an element') and specifies the target resource ('element'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from similar sibling tools like 'press' or 'hover' that also interact with elements, which prevents a perfect score.

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 description provides some implied usage guidance by mentioning when to use 'force: true' ('when an overlay is in the way'), but it doesn't explicitly state when to choose this tool over alternatives like 'press' for keyboard interactions or 'hover' for mouse hovering. No clear exclusions or sibling comparisons are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mesomya/electron-driver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server