Skip to main content
Glama

esp_scroll

Scroll the mouse wheel up/down or horizontally by a set number of notches at the cursor or given screen coordinates, with verification to prevent accidental actions.

Instructions

Scroll the mouse wheel (up/down) or the horizontal wheel (left/right) by amount notches, at the cursor or first at (x, y) with the same verification as esp_click.

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

Input Schema

NameRequiredDescriptionDefault
xNoOptional position (physical screen px) to scroll at; give both or neither. When the cursor misses it by more than tolerance_px nothing is scrolled.
yNoOptional Y.
amountNoWheel notches, 1..20 (default 3).
coordsNo"screen" (default): physical screen pixels. "screenshot": pixels of the image from esp_screenshot named by screenshot_id.
directionYesup/down = wheel, left/right = horizontal wheel.
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_pxNoDefault 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

B3.4/5.0
Behavior3/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. It does disclose a real behavioral trait — the action is verified afterward, with semantics matching esp_click, and the (x, y) point must be hit within tolerance or nothing scrolls — but 'same verification as esp_click' is opaque unless the agent already knows that tool, and nothing is said about focus requirements or what the verification returns.

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?

A single front-loaded sentence with no filler, and the primary action plus magnitude come first. The trailing 'at the cursor or first at (x, y)' clause is slightly compressed but still parseable.

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

Completeness3/5

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

For a 9-parameter input-simulation tool with no annotations and no output schema, the description is thin on behavior beyond the mechanism. The rich schema compensates for parameter detail, but the meaning of the promised verification and the shape of the receipt an agent gets back are left unexplained.

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 every parameter including request_id idempotency and tolerance_px. The description only restates `amount` as notches and the up/down vs left/right split, which the schema already declares; it adds the 'give both or neither' pairing intent for x/y but no new syntax or format detail.

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 specific verb and resource (scroll the wheel / horizontal wheel) plus the magnitude (`amount` notches) and the two positioning modes (at the cursor, or at (x, y)). It is clearly distinguishable from esp_move/esp_drag, though it never says so 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?

Usage is implied by the verb — use this to scroll content — but there is no when-not guidance and no named alternative (e.g. esp_drag for scrollbar dragging, esp_button for middle-click). The cross-reference to esp_click for verification is the only routing hint.

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