Skip to main content
Glama

desktop_click

Clicks or presses a referenced UI element in macOS apps, including closed menu items, and returns an accessibility-tree diff so agents can verify the result before dependent actions.

Instructions

Click (press) a ref. Menu items run even in closed menus. Each action returns a diff of the window ((no change) = its accessibility tree did not change); take refs from the newest header — a control whose label changed (AC → C) can need its new ref. Wait for one click's result before the next dependent click.

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_id": "<ref_id>"
    },
    "name": "desktop_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
headedNo
ref_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that every action returns a window diff, that '(no change)' means the accessibility tree was unchanged, that closed-menu items are still actionable, and that refs can go stale after a label change (AC → C). It omits permission/auth needs and what the timeout or 'headed' mode change behaviorally.

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?

Front-loads the core action in the first clause and every subsequent sentence carries distinct information about return format, ref freshness, and sequencing. The em-dash-heavy run-on construction and the '(AC → C)' shorthand make it denser than necessary but not padded.

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?

Return-value semantics are covered well enough that no output schema is needed, and the ref-staleness workflow is explained. But for a tool with zero annotation coverage and 0% schema coverage, the unexplained headed and timeout_ms parameters leave a real gap in an otherwise thoughtful definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, so the description must compensate. It clarifies ref_id only implicitly ('take refs from the newest header'), and says nothing about headed or timeout_ms (including what happens when the 5000ms default elapses), leaving two of three parameters undocumented anywhere.

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 (press) a ref', where ref is clearly an accessibility reference. It is understandable in isolation, but it offers no explicit differentiation from near-siblings like desktop_double_click, desktop_right_click, or desktop_mouse_click, and the parenthetical '(press)' overlaps confusingly with the desktop_press sibling.

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?

Provides real operational guidance: menu items can be clicked even in closed menus, refs must come from the newest header, and the agent must wait for one click's result before a dependent click. However, it never says when to prefer this over double_click/right_click/mouse_click, so alternative selection is left to inference.

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