Skip to main content
Glama

scroll

Destructive

Move the mouse wheel up, down, left, or right by set notches at the pointer or specified coordinates to navigate content in a sandboxed desktop.

Instructions

Scroll the wheel. Say where: direction='down'|'up'|'left'|'right' with amount notches (sign ignored) — or the signed form: positive = up (or left), negative = down (or right).

Returns {"ok", "action", "instance", "detail", "applied", "clamped", "axis", "direction"}. One unit ≈ one wheel notch (a few lines); at most 100 notches per call ("clamped": true when you asked for more, "applied" says how many were sent). Scrolling targets the window under the pointer — pass x,y to move there first (both >= 0), otherwise the current pointer position is used. axis='horizontal' scrolls sideways (wheel buttons 6/7). Fails (isError) on amount=0 (a no-op), a dead instance, off-screen x,y or an unknown axis. observe/settle_ms: see click().

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": "scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
axisNovertical
amountNo
observeNonone
instanceNo
directionNo
settle_msNo
observe_regionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.6.1
    • addedInput schema / properties / amount / default
      Added value: +3
    • addedInput schema / properties / axis
      Added value: +{
      +  "default": "vertical",
      +  "title": "Axis",
      +  "type": "string"
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "default": "",
      +  "title": "Direction",
      +  "type": "string"
      +}
    • addedInput schema / properties / observe_region
      Added value: +{
      +  "default": "",
      +  "title": "Observe Region",
      +  "type": "string"
      +}
    • addedInput schema / properties / x
      Added value: +{
      +  "default": -1,
      +  "title": "X",
      +  "type": "integer"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "default": -1,
      +  "title": "Y",
      +  "type": "integer"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "amount"
      -]
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

The definition adds real context beyond the annotations: the return key set, the 100-notch ceiling with `clamped`/`applied` semantics, the equivalence of one unit to a wheel notch, and the explicit failure modes. With readOnlyHint=false, destructiveHint=true and openWorldHint=true already declared, the description correctly portrays an interacting operation, but it does not elaborate on what the destructive flag implies here or on instance targeting.

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 core directive and keeps dense but useful detail, with each clause on limits, return keys, or failures doing work. It is somewhat run-on in the middle sentences, where the return-key enumeration and the notch/clamp rules could be split more cleanly.

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 nine-parameter, no-output-schema tool, the description covers most of what an agent needs: input forms, units, clamping, targeting behavior, and error conditions, and it enumerates return keys in lieu of an output schema. The uncovered pieces (instance, observe_region, cross-referenced observe/settle_ms) keep it short of fully complete.

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 carries the burden and it does explain direction, amount (sign ignored, max 100), axis, and x/y with a >= 0 constraint. However, three of nine parameters (instance, observe_region, and observe/settle_ms, which are deferred with 'see click()') receive no explanation here, leaving a meaningful gap against a 0% coverage schema.

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?

Opens with a concrete verb and resource ('Scroll the wheel') and immediately defines the two accepted input forms plus the axis option, so the action is unambiguous. The pointer-targeting note ('pass x,y to move there first') also separates it from the nearby pointer-movement siblings like move_mouse or drag.

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: how to express direction either unsigned with `amount` or signed, when x,y are needed versus the current pointer position, and what conditions cause failure (amount=0, dead instance, off-screen coordinates, unknown axis). It does not state broader when-to-use/when-not guidance against alternatives such as drag, but that gap is small for an unambiguous primitive.

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