Skip to main content
Glama

esp_click

Clicks a hardware mouse at physical screen coordinates, verifies the cursor before acting, and skips the click if the target is missed beyond tolerance.

Instructions

Click through the hardware mouse. With x and y it first moves there and verifies the cursor; when the cursor misses by more than tolerance_px it does NOT click (position_mismatch). Coordinates are physical screen pixels. The receipt does not confirm what the click did: check the screen.

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": {
      "control_id": "<control_id>"
    },
    "name": "esp_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoOptional target X (physical screen px); give both x and y or neither (click in place).
yNoOptional target Y.
countNo1..3 (double click = 2). Default 1.
buttonNoDefault left.
coordsNo"screen" (default): physical screen pixels. "screenshot": pixels of the image from esp_screenshot named by screenshot_id.
modifiersNoKeys held during the click, e.g. ["ctrl"]; released in the same call.
control_idYesFrom esp_control begin.
request_idNoOptional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again.
tolerance_pxNoAllowed distance from the target in px per axis (default 1); farther = no click.
screenshot_idNoWith coords "screenshot": the screenshot_id the coordinates refer to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.8/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 discloses the key behavioral trait most agents would miss: the cursor is verified after the move and the click is suppressed with position_mismatch when the miss exceeds tolerance_px. It also warns that the receipt does not confirm the effect, which is exactly the kind of outcome caveat annotations would otherwise cover.

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?

Four short sentences, front-loaded with the action and the coordinate convention, then the failure mode, then the receipt caveat. Nothing is redundant and the most safety-relevant fact is not buried.

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 ten-parameter mutation tool with no annotations and no output schema, the description covers the critical ground: coordinate space, verification-and-abort behavior, the position_mismatch signal, and the limits of the receipt. It stops short of stating prerequisites (control session, window focus) which matter for a hardware-input tool.

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 the schema already documents all ten parameters in detail; baseline is 3. The description adds cross-parameter meaning by explaining how x/y and tolerance_px interact (move, verify, abort on mismatch) and by fixing the coordinate space in physical screen pixels, but it says nothing about count, button, modifiers, or request_id idempotency.

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 through the hardware mouse') and adds scope that separates it from a pure move: with x/y it moves first, then clicks. It does not name esp_move or esp_drag explicitly as alternatives, so the sibling differentiation is implicit 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?

Gives useful usage context (coords are physical screen pixels; give both x and y or neither is in the schema) and a post-call guidance step ('check the screen'), but never states when to prefer this over esp_move, esp_drag, or esp_button, nor any session prerequisite such as an active esp_control begin.

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