Skip to main content
Glama

tool_click_at

Click at client-area coordinates within a window. Coordinates relative to window content area (0,0 = top-left). Tries the ELEMENT path first (resolve the point via UI Automation and invoke that element) because it needs no focus and does…

Instructions

Click at client-area coordinates within a window. Coordinates relative to window content area (0,0 = top-left). Tries the ELEMENT path first (resolve the point via UI Automation and invoke that element) because it needs no focus and does not care about z-order; falls back to a gated raw cursor click before dispatch when the hit is an image/document surface or cannot be invoked. A sent Invoke is never followed automatically by a raw click. Check effect_verified and observe the window when the effect is unconfirmed. The result's method says which was used: 'ax_press' or 'raw_event'. MUTATING: serialized across agent sessions; the raw_event path ALSO YIELDS TO THE USER (waits for input-quiet, then refuses with user-active rather than fighting them for the cursor); the ax_press path injects no physical input. The raw path verifies the addressed window actually owns that screen point and returns success=false instead of clicking another window. Pass dry_run=true to check where the click would land without moving the cursor, clicking, or taking any gate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tool_click_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
hwndNo
titleNo
preferNoelement
dry_runNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.1/5.0
Behavior5/5

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

With zero annotations the description carries the full burden and does so: it declares the tool MUTATING, notes serialization across sessions, explains that raw_event yields to the user and can return user-active, that ax_press injects no physical input, that a sent Invoke is never followed by a raw click, that the raw path refuses to click a window that doesn't own the point (success=false), and that the result reports method and effect_verified.

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 action and coordinate frame, then layers mechanism, safety, and verification in a logical order. The sentences are long and dense — several packed clauses per line — but almost every clause carries non-obvious behavioral information rather than 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 mutating, dual-path input tool this is close to complete: execution strategy, failure modes, verification signals, and a safe preview path are all covered, and an output schema exists so return shapes needn't be restated. The remaining gap is window-targeting parameters (hwnd vs title) and the values of `prefer`, which an agent must still guess.

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 0%, so the description must supply parameter meaning. It explains x/y semantics (client-area-relative, origin at top-left) and fully defines dry_run, but says nothing about hwnd, title, or prefer — notably `prefer` has a default of 'element' whose alternative value is never stated.

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 precise verb and resource ('Click at client-area coordinates within a window') and pins the coordinate frame (0,0 = top-left of content area). It also explains the two execution paths, which implicitly separates it from pure element-invocation siblings like tool_element_action_at, but it never names an alternative tool explicitly.

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 clear operating context: element path is tried first because it needs no focus and ignores z-order, raw click only fires when the hit is an image/document surface or the element can't be invoked, and dry_run=true is the way to preview without side effects. No explicit exclusions naming a sibling tool for coordinate-free element interaction, which keeps it from a 5.

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