Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Click an element

click_ui_element
Destructive

Clicks a UI element by ID and brings its app to the front. Use it for double-clicks or right-clicks when pressing an element does not work.

Instructions

Click an element's middle with the mouse, bringing its app to the front: for a double-click, a right click, or an element press_ui_element doesn't work on.

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": {
      "id": "<id>"
    },
    "name": "click_ui_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe element's id, from get_ui_elements, find_ui_elements or another tool of these that returned it.
countNo2 double-clicks: opens a file in a list.
buttonNo'right' opens a context menu.left

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.2

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructive, openWorld, non-idempotent and non-read-only, so the safety profile is carried elsewhere. The description still adds real information not in the annotations: the click raises the target's app to the foreground, a disruptive focus change worth knowing before calling.

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 covers purpose, side effect, and alternatives with no filler. However, "Click an element's middle with the mouse" is awkwardly worded and momentarily ambiguous about where the click lands.

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?

With an output schema present, return values need no explanation, and the annotations cover safety. The description adds the focus-stealing side effect and the fallback-to-press rationale, leaving only minor gaps such as failure or timing behavior.

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 parameter already carries a description explaining count=2 for double-click and button=right for context menus. The description names the same two behaviors but only as use cases, adding no format or constraint detail beyond the schema, so baseline 3 applies.

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 concrete verb and resource ("Click an element") plus the side effect of raising its app to the front, and explicitly scopes it to the cases press_ui_element doesn't cover. An agent can distinguish it from press_ui_element and click_menu_item without reading either schema.

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

Usage Guidelines4/5

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

Gives clear selection context: use this for double-click, right-click, or elements where press_ui_element fails. The fallback condition is useful but slightly fuzzy, since the definition never says how an agent would know press failed.

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