Skip to main content
Glama
computer
by zznabil

Click element

element_click
Destructive

Clicks the center of a desktop UI element using its accessibility-tree ref, so agents can act on controls without taking a screenshot; optionally selects menu items or uses modifiers.

Instructions

Click the centre of an element by ref (no screenshot needed).

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

Input Schema

NameRequiredDescriptionDefault
refYesElement ref from ax_tree/ax_find, e.g. "e12".
menuNoMenu item path to choose in the menu this click opens, e.g. ["Add to", "Fonts"].
countNoClick count, e.g. 2 for a double click.
buttonNo"left" (default), "right" or "middle".
takeoverNoOmit (default): background first; the server decides any takeover. true: activate the window and post real input now. false: background only, never take over.
modifiersNoModifier keys held during the click, e.g. ["shift"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so safety is partly covered. The description adds one genuine behavioral fact — that the click targets the element centre without a screenshot — but never warns that the click may trigger real UI effects (opening menus, submitting forms) despite the destructive flag.

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 zero filler; the action and its key convenience fact come first. It is arguably too terse for a destructive, six-parameter tool, but nothing is redundant.

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 a fully documented schema and annotations present, the core information an agent needs to invoke the tool exists. However, for a destructive, open-world click tool that can open menus and drive real UI, the description omits any caution or note about side effects, making it only minimally complete.

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 100% and each of the six parameters (ref, menu, count, button, takeover, modifiers) is documented in the schema itself, including the ref provenance from ax_tree/ax_find. The description adds nothing beyond that, so the baseline of 3 applies.

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 gives a specific verb and resource — 'Click the centre of an element by ref' — plus the parenthetical clarifies it works without a prior screenshot. This distinguishes it implicitly from coordinate-based 'click' and from 'screenshot', though it never names those siblings explicitly.

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?

'no screenshot needed' hints that no visual capture is required first, which is mild usage context. Beyond that, there is no statement of when to prefer this over 'element_press', plain 'click', or 'menu_select', and no exclusions or prerequisites are given.

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