Skip to main content
Glama
surpasses
by surpasses

scroll

Move the viewport up, down, left, or right by mouse-wheel ticks to bring off-screen content into view. Optionally target a specific element or coordinates for precise positioning.

Instructions

Scroll with the mouse wheel at a point (default viewport centre) or over a ref. amount = wheel ticks of 100px.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNo
yNo
refNoElement ref from read_page or find, e.g. ref_12 or f1:ref_3 (f1 = inside frame 1)
tabIdYesTab id from tabs_context
amountNo
directionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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. It adds useful detail (default viewport centre, amount=100px ticks) but doesn't disclose side effects, reversibility, or limitations (e.g., page-specific behavior).

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, dense sentence that front-loads the core action and meaning of amount, with no redundant words.

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 6-parameter tool with no annotations or output schema, the description covers core usage but omits edge cases like precedence when both coordinates and ref are provided, and doesn't mention any return behavior. Adequate for basic calls, but not exhaustive.

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 low (33%), so the description compensates by explaining x/y (point), ref (over a ref), and amount (wheel ticks of 100px). Direction and tabId are either self-evident (enum) or already documented in the schema.

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?

The description clearly states the action (scroll with mouse wheel) and the target (at a point or over a ref), with a note on amount units. It distinguishes from scroll_to by implying wheel-based scrolling, but doesn't explicitly contrast with any sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like scroll_to. The description provides no conditions, exclusions, or recommended scenarios.

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