Skip to main content
Glama

scroll

Moves the screen or a target element up, down, left, or right by a set distance; optional fling lets motion coast after release.

Instructions

Scroll "down" (reveal content below), "up", "left" or "right", within an element handle or the whole screen, by about distance of its height/width so consecutive pages overlap. The finger rests before lifting so the list stops where it was dragged; fling=True lets it coast (faster, may skip).

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
flingNo
targetNo
distanceNo
directionYes
max_wait_msNo
observe_afterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose useful mechanics — pages overlap by roughly `distance` of the element's height/width, the finger rests before lifting so the list stops where dragged, and fling coasts but may skip — but says nothing about the other parameters or what the call reports back, leaving significant disclosure gaps for a mutation-style UI action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two dense sentences that front-load the direction and scope information before the mechanics. Every clause carries content, though the quoted direction tokens and the combined mechanics/fling clause make it slightly harder to scan than necessary.

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?

An output schema exists, so return values need not be described. However, with six parameters at 0% schema coverage and no annotations, the definition leaves the element-targeting parameter and the timing/observation flags unexplained, which is a meaningful gap for an automation primitive.

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 compensate. It usefully explains `direction` values, the meaning of `distance` (a fraction of height/width, defaulting to page overlap) and `fling`, but leaves `target`, `max_wait_ms` and `observe_after` completely undefined — half the parameters remain opaque.

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) with the four allowed directions and the scope (an element handle or the whole screen), plus the page-overlap intent that separates it from a raw drag/swipe. It never names a sibling, so the distinction is inferable rather than explicit.

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 through the direction semantics and the fling tradeoff ("faster, may skip"), which helps an agent choose between precise vs fast scrolling. There is no explicit when-to-use/when-not guidance and no comparison against swipe or press_key for reaching off-screen content.

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