Skip to main content
Glama

Scroll

scroll

Move the mouse wheel over a chosen element or the pointer location to page through content, using direction, distance, and read or flick pacing.

Instructions

Turns the mouse wheel like a person, over an element when one is given (the pointer moves there first), else where the pointer is.

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

Input Schema

NameRequiredDescriptionDefault
idNoAn element id from a listing, such as a12.
paceNoread (default) or flick for a long jump.
quietNoAnswer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.
amountNoCSS pixels (default 400).
directionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / quiet
      Added value: +{
      +  "description": "Answer without the changed elements (what opened on top, the focus and announcements stay); for pages such as Google Docs where every key changes much of the listing.",
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a real side effect: the pointer physically moves to the element before scrolling. The phrase 'like a person' hints at human-like event synthesis (relevant for anti-bot behavior). However, it says nothing about waiting for scroll to settle, lazy-loading content, or what the call returns — the fact that a scroll answer normally includes changed elements only surfaces indirectly via the 'quiet' parameter description.

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?

A single sentence that front-loads the core action and then qualifies targeting in a parenthetical. No filler, nothing repeated from 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 five-parameter input tool with no output schema and no annotations, the description covers the essential mechanics: what is scrolled, where, and the pointer side effect. Defaults (amount 400, pace 'read') and the return shape are left to the schema and the per-parameter descriptions, which is acceptable given the 80% coverage.

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?

Schema coverage is 80%, so the baseline is 3; the description adds meaning by explaining the targeting rule that governs the optional 'id' — when present the pointer moves there first, when absent the scroll happens wherever the pointer currently sits, which is a stateful behavior the schema does not convey.

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 ('Turns the mouse wheel') plus a precise targeting rule: over the given element, otherwise at the current pointer location. It's clearly distinct from input tools like click or press, though it never names a sibling 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 behavior description — scroll when you need to move the viewport, and supply an id to target a region — but there is no explicit when-to-use / when-not guidance and no mention of alternatives such as navigate or eval_js for large jumps.

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