Skip to main content
Glama

click

Destructive

Presses visible UI elements by index, accessible name/text, or window/screenshot coordinates, using native pointer input so the agent cursor overlay appears.

Instructions

Click a visible element by index, accessible name/text, or screenshot/window-relative coordinates. Element clicks use the native pointer path so the visible agent cursor overlay appears.

Input Schema

NameRequiredDescriptionDefault
xNoX coordinate in coordinate_space.
yNoY coordinate in coordinate_space.
appYesApp name, Hyprland class/title, pid, or address:0x... selector.
nameNoAccessible name/text to match before falling back to coordinates.
coordinateNo(x, y) coordinate in coordinate_space. Defaults to screenshot pixels from get_app_state.
click_countNoNumber of clicks. Defaults to 1.
mouse_buttonNoleft
element_indexNoElement index from the last get_app_state result.
coordinate_spaceNoCoordinate space. screenshot uses get_app_state pixels; window uses logical coordinates from the target window's top-left.screenshot
confirmation_tokenNoExternally approved, one-time challenge ID from request_confirmation for a high-risk action.
element_click_modeNoFor element_index clicks: pointer uses the element frame center and native pointer input; auto tries AT-SPI then pointer; atspi requires an AT-SPI action.pointer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotency, so the safety profile is covered. The description adds one genuine behavioral nuance beyond that: element clicks use the native pointer path so the visible cursor overlay appears. It does not, however, surface the confirmation_token/high-risk gating that the schema implies, so it is adequate but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences with the core capability front-loaded and no filler. Both sentences earn their place: the first defines targeting modes, the second adds the pointer-path behavior.

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?

For an 11-parameter mutating tool with no output schema, the description covers targeting and pointer behavior but omits the confirmation flow for high-risk actions and any relationship to the numerous sibling click tools. It is minimally complete but leaves real gaps for selection and risk handling.

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 91%, so the schema documents nearly all 11 parameters in detail. The description only summarizes the three targeting modes (index, name/text, coordinates) that map to element_index/name/coordinate, adding little beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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 (Click) and resource (visible element) and enumerates three targeting modes: element index, accessible name/text, and coordinates. The purpose is unambiguous, but it does not distinguish itself from the many sibling click tools (left_click, right_click, double_click, click_text, click_mark), so an agent cannot tell from the description alone why it should pick this over those.

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?

The description implies multiple targeting approaches but gives no when-to-use guidance, prerequisites, or named alternatives among the dense click-tool siblings. There is no statement of when NOT to use it or how it relates to left_click/click_text, leaving selection entirely to inference.

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