Skip to main content
Glama

scroll

Move the current page or a specified element up, down, left, or right by 100px ticks, or bring a referenced element into view in Firefox.

Instructions

Scroll the page (or a ref element) up/down/left/right by amount ticks (100px each). With only ref, scrolls it into view.

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
refNoElement ref (ref_N) from read_page or find.
tabIdNoTab to act on. Omit for the active tab.
amountNo
directionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does add real context beyond the schema: the 100px tick unit and the distinct ref-only scroll-into-view behavior. It omits the default amount when omitted, whether scrolling is instant or animated, and any error behavior for invalid refs or tab ids.

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?

Two compact sentences, front-loaded with the primary action, and every clause carries information — the scope, the unit, and the special case. No filler or restatement of the name.

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 simple zero-required-parameter tool with no annotations and no output schema, the description covers the core action and the ref-only case. It still leaves open the default scroll amount, interaction between amount/direction and ref, and what is returned, which matters since nothing else documents these.

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 only 50% (ref and tabId documented; amount and direction not), so the description must compensate — and it does, explaining the 100px-per-tick unit for 'amount' and naming the four directions matching the enum. Remaining gap is the default or expected value of 'amount' when omitted.

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: scrolls the page or a ref element, in one of four directions, by a defined unit. The unit ('amount ticks (100px each)') and the ref-only special case make the operation unambiguous to an agent, though it does not explicitly contrast itself with siblings like read_page or find.

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?

The phrase 'With only ref, scrolls it into view' gives an implied usage rule for the ref-only case, which is genuinely helpful. However there is no explicit when-to-use guidance (e.g., after read_page returns an offscreen ref, or versus waiting/navigating), and no stated preconditions or exclusions.

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