Skip to main content
Glama
computer
by zznabil

Click

click
Destructive

Simulate mouse button presses at specified screenshot pixel coordinates in a target window, running in the background without moving the user's pointer.

Instructions

Click at screenshot pixels in a target window (background by default, without moving the user's pointer).

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": {
      "target": "<target>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesx in pixels of the most recent FULL screenshot of the same target (not zoom pixels, not AX coordinates).
yYesy in the same frame as x.
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".
targetYesWindow id from list_windows, "desktop", or "display:<id>" / "display:active" / "display:all". Prefer a window id: window input runs in the background; desktop/display input drives the user's real pointer and keyboard.
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

A3.8/5.0
Behavior4/5

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

Annotations already flag destructive, non-idempotent, open-world. The description adds genuinely useful behavior beyond that: it runs in the background by default and does not move the user's pointer, which is the key surprise-reducer for an agent deciding whether this disturbs the user. It does not state what happens on failure or whether the click is verified.

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?

A single front-loaded sentence with the resource, the coordinate frame, and the default execution mode. No filler or restated title text.

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 eight parameters fully described in the schema and annotations covering the safety profile, the short description is nearly sufficient; the background/pointer behavior is the main thing it needed to add, and it does. A minor gap is the absence of any note on what a successful click returns or how to recover the coordinate frame.

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%, so every parameter (target, x/y frame, menu path, count, button, takeOver, modifiers) is already documented in the schema. The description's parenthetical only reinforces the takeOver default and adds no syntax or format detail the schema lacks, so the 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 concrete verb and resource ("Click at screenshot pixels in a target window") plus a coordinate-frame constraint, which is specific enough to distinguish it from coordinate-free siblings like element_click or ax_element_at. It does not name any sibling explicitly, so differentiation is inferred from the pixel/AX distinction rather than stated.

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?

Usage is implied by the pixel-coordinate framing and the background-vs-foreground default, and the x/y schema notes steer the agent to the most recent FULL screenshot. There is no explicit when-to-use / when-not guidance and no named alternative for element-based clicking.

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