Skip to main content
Glama

click

Simulate mouse button presses at exact screen coordinates without stealing window focus, or use protected foreground input with focus and cursor restoration.

Instructions

Click at coordinates. Defaults to silent background mode='message' (zero focus steal).

If mode='sendinput' is needed, User-Activity Guard + Strict Focus Lock + Focus/Cursor Restore protect the user's active window from interference.

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

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
hwndNo
modeNomessage
focusNo
buttonNoleft
clicksNo
scale_xNo
scale_yNo
user_idle_msNo
client_coordsNo
restore_focusNo
restore_cursorNo
title_containsNo
respect_user_inputNo
require_target_focusNo
wait_for_idle_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

B3.3/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 the default silent background delivery, the zero-focus-steal property, and names the safety mechanisms (User-Activity Guard, Strict Focus Lock, Focus/Cursor Restore) active in sendinput mode. It stops short of stating failure behavior or what happens when the target window cannot be focused.

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?

Two short sentences with the most important fact (default background mode) front-loaded. The second sentence reads as a feature list without explaining what each guard actually does or how to trigger it, so it trades some clarity for brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter tool with no annotations and no schema descriptions, the description is far too thin. An output schema exists, so return values are covered, but the interaction between focus, restore, idle, and coordinate-scaling parameters is essential to correct invocation and entirely absent.

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 17 parameters, so nearly all semantics must come from the description, yet only 'mode' is explained. Coordinates, hwnd, button, clicks, scale and client_coords, title_contains, respect_user_input, require_target_focus, user_idle_ms and wait_for_idle_seconds are documented nowhere, leaving an agent unable to use most of the surface correctly.

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?

A clear verb plus target: 'Click at coordinates.' The coordinate-based targeting implicitly separates it from the sibling click_element, which works by element rather than position, though no sibling is named explicitly.

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?

Guidance is given for choosing between mode='message' (default, no focus stealing) and 'sendinput' (guarded, needed for real input), which is genuinely useful. However, it never says when to use this tool at all versus click_element, drag, or other interaction siblings, so tool-level routing 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.