Skip to main content
Glama

electron_click

Clicks a UI element using its snapshot reference to trigger controls in Electron applications during automated agent workflows.

Instructions

Click on an element using its reference from the snapshot

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": {
      "ref": "<ref>"
    },
    "name": "electron_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesElement reference (e.g., e1, e2) from the snapshot

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/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, yet it says nothing about what the click does beyond the act itself: whether it awaits navigation or DOM updates, what happens on a stale/invalid ref, or whether it errors or silently fails. For a side-effecting interaction tool this is a substantial omission.

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 front-loaded sentence with no filler; the key dependency (snapshot-derived ref) is embedded rather than buried. It is terse to the point of under-specification, but nothing in it 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?

With one fully documented parameter and no output schema, the definition is minimally sufficient to invoke the tool correctly. It falls short on post-click behavior and failure modes, which matter more here because no annotations exist to cover them.

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% and the single parameter already documents the e1/e2 reference format. The description reinforces the provenance of the ref (from the snapshot), which adds slight value but no new syntax or 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?

States a specific verb and resource ("Click on an element") plus the means ("its reference from the snapshot"), which separates it from siblings like electron_type and electron_verify_element_visible. It stops short of naming any sibling explicitly, so differentiation is inferential rather than stated.

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 phrase "reference from the snapshot" implies the prerequisite that a snapshot must be taken first, which is useful implied guidance. However, there is no explicit when-to-use statement, no mention of when not to click versus using type/verify tools, and no handling guidance for stale or invalid references.

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