Skip to main content
Glama

esp_move

Move the hardware mouse cursor to exact physical screen or screenshot pixel coordinates and verify the real position, reporting a mismatch when it lands outside the allowed tolerance.

Instructions

Move the mouse cursor to (x, y) in physical screen pixels through the hardware mouse, then read the real cursor position. Fails with position_mismatch when it lands farther than tolerance_px. Input tools refuse to run on a lock screen or UAC prompt, over an administrator window, or while the user holds a key; user_interrupt means the user took over: ask before resuming. Positions are physical screen pixels, or with coords "screenshot" and a screenshot_id pixels of that esp_screenshot image.

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

Input Schema

NameRequiredDescriptionDefault
xYesTarget X in physical screen pixels (virtual desktop, may be negative).
yYesTarget Y in physical screen pixels.
coordsNo"screen" (default): physical screen pixels. "screenshot": pixels of the image from esp_screenshot named by screenshot_id.
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).
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

A4.5/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so well: it discloses the position_mismatch failure against tolerance_px, the refusal conditions, the user_interrupt semantics, and that the actual cursor position is read back after the move. These are exactly the behavioral traits an agent cannot infer from the schema.

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, then the verification behavior, then the refusal/interrupt handling, then coordinate spaces. Dense but every sentence conveys operational information; only the final coordinate-space sentence partially duplicates the schema.

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 mutation tool with no annotations and no output schema, the definition covers failure modes, refusal conditions, and the fact that the real cursor position is read back. A little more on what the receipt contains or the esp_control session requirement would close the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema coverage the baseline is 3, but the description adds meaning by explaining that tolerance_px governs the position_mismatch outcome and that coords "screenshot" pairs with screenshot_id to interpret pixels in an esp_screenshot image. It repeats a bit of what the schema already says about coordinate spaces.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb, resource, and mechanism: move the cursor to (x, y) through the hardware mouse, then read back the real position. The verification loop and physical-pixel framing make it clearly distinct from esp_click and esp_drag without needing to name them.

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 concrete preconditions for refusal (lock screen, UAC prompt, administrator window, user holding a key) and tells the agent to ask before resuming after a user_interrupt, which is real when-to-use guidance. It stops short of explicitly routing to alternatives such as esp_click for click-after-move.

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