Skip to main content
Glama

ax_click

Clicks UI elements by matching a case-insensitive substring of their accessibility role or label, without moving the cursor or requiring the app to be frontmost.

Instructions

Legacy query action through macOS Accessibility or Windows UI Automation — no coordinates, no cursor movement, works in the background (the app need not be frontmost). query is a case-insensitive substring of the element's accessibility role or label/title (e.g. "Send", "Search"). Ambiguous matches fail closed. Prefer fresh ax_read + ax_activate for exact, generation-safe actions.

Input Schema

NameRequiredDescriptionDefault
queryYesCase-insensitive substring matching the target element's accessibility role or label/title (e.g. "Send", "Search", "AXButton").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • removedInput schema / title
      Removed value: -"AxQueryParams"
  2. First observedv0.1.0

TDQS

A3.9/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 behavioral burden and does well: no coordinates, no cursor movement, app need not be frontmost, and ambiguous matches fail closed. It does not mention required accessibility permissions or what a successful call returns/reports, which are meaningful remaining gaps for a UI-automation tool.

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?

Three tight sentences, front-loaded with the mechanism and the key routing warning; each sentence carries distinct information (mechanism, matching semantics, failure mode, alternative). Dense with backticked identifiers but no filler.

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?

For a one-parameter, no-output-schema tool with no annotations, the description covers mechanism, matching semantics, failure behavior, and sibling routing. The main omission is any hint of the return value or post-action confirmation, minor given the absence of an output schema.

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 is already fully documented in the schema. The description restates the matching rule and adds the useful 'ambiguous matches fail closed' constraint, but contributes little parameter 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific action (click/query against an element) and the underlying mechanism (macOS Accessibility / Windows UI Automation), and explicitly names the preferred alternatives (ax_read + ax_activate). The phrase 'legacy query action' is slightly loose about what the action does (a click), but the surrounding sentences make the semantics clear.

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 a clear negative directive — prefer fresh ax_read + ax_activate for exact, generation-safe actions — which frames this as the legacy fallback path. It also notes when it is appropriate (background operation, no coordinates/cursor). No explicit statement of when the legacy path is the *only* option, but the routing intent is unambiguous.

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