Skip to main content
Glama

Scroll page

scroll

Move the page vertically by a pixel amount to reach content below the fold or trigger lazy loading, and return the resulting vertical position.

Instructions

Scroll the page vertically by a pixel amount.

Use to reach content below the fold or to trigger lazy loading. To reach one known element instead, scroll_to_element is more reliable. Scrolls with a synthesized wheel gesture, as a user would. Returns the vertical scroll position afterwards.

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
tabNoTab id from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2'
amountNoDistance to scroll in CSS pixels. Example: 500
directionNoDirection to scroll the page. Example: 'down'down

Output Schema

NameRequiredDescriptionDefault
targetNoSelector scrolled to, if any.
summaryYesOne line saying what happened.
scroll_yNoVertical scroll position afterwards.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: the scroll is performed via a synthesized wheel gesture as a user would, and it returns the resulting vertical scroll position. It could still note side effects such as triggering lazy-loaded content changes, but the disclosure is solid.

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?

Three short sentences, front-loaded with the core action, followed by usage guidance and mechanism. Every sentence carries distinct information with no redundant phrasing.

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?

Output schema exists, so omitting return-value detail is fine; the mention of returning scroll position is a bonus. Low complexity (3 optional params, full schema coverage) means the definition is nearly sufficient, with only minor omissions like tab-targeting behavior not being mentioned in prose.

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 tab, amount, and direction are already fully documented with defaults and examples. The description only restates that scrolling is by a pixel amount and says nothing extra about the tab parameter or direction semantics, so baseline 3 applies.

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?

The description states a specific verb and resource ('Scroll the page vertically by a pixel amount') and immediately distinguishes this tool from a named alternative ('scroll_to_element is more reliable'). An agent can select between them without opening either schema.

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

Usage Guidelines5/5

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

It gives explicit when-to-use conditions ('reach content below the fold', 'trigger lazy loading') and an explicit when-not/alternative ('to reach one known element instead, scroll_to_element'). Nothing is left to inference.

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