Skip to main content
Glama

scroll

Moves the page viewport in a chosen direction or brings a referenced element into view, with an optional pixel distance.

Instructions

滚动页面。指定 ref 时把该元素滚动到可见;否则按方向滚动页面(amount 为像素,默认一屏的 80%)。

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
refNo
amountNo
directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the safety profile is partly covered. The description adds useful behavior beyond that: the default amount is 80% of one screen when unspecified. It does not say whether the call waits for scroll completion or what it returns, which matters for a viewport-mutating tool.

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 compact sentence with the element-mode condition front-loaded before the fallback page-scroll mode. No redundant restatement of the tool name or filler text.

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?

No output schema exists, and the description covers the two operating modes plus the default amount, which is enough to invoke the tool correctly. Minor gaps remain around parameter interaction and post-scroll state, but nothing essential is missing for a three-optional-parameter tool.

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 must carry the load, and it does explain all three parameters: ref (target element), direction (page scroll axis), and amount (pixels, default 80% of a screen). However it does not state that amount is ignored when ref is supplied, nor that direction defaults when omitted, leaving interaction between parameters implicit.

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 (scroll) and resource (page/element) and splits behavior into two clear modes: element-into-view when ref is given, directional page scroll otherwise. It does not name or contrast with siblings such as snapshot or find, but the purpose is unambiguous on its own.

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 explicit conditional guidance: use ref to bring an element into view, omit it to scroll by direction. That is a clear when-to-use rule for the two modes, though it offers no exclusions or advice on when scrolling is unnecessary (e.g., after navigate).

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