Skip to main content
Glama

scroll

Scroll the page (down/up) or a horizontal rail (right/left, give the rail's ref). Returns the new screen. The result starts with 'Change: none | content changed | new screen | scrolled'.

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": {
      "session": "<session>",
      "direction": "<direction>"
    },
    "name": "scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoScroll inside this element (a rail or list); omit for the page
settleNoWait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.
compactNoWhen the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen.
sessionYesSession from open_app
wait_forNoUse after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.
directionYes
timeout_msNoHow long wait_for and settle may take, in ms (default 2000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / compact / description
      Previous value: -"When the change is 'content changed', return only the added/removed lines, not the whole screen"New value: +"When the change is 'content changed', the result lists only the lines that changed (+ added, - removed, ~ changed), with refs as on the full screen. This is the default. Pass false to get the whole screen."
  2. Changed2 schema fields changed
    • changedInput schema / properties / ref / pattern
      Previous value: -"^e\\d+$"New value: +"^(?:p\\d+|f\\d+)?e\\d+$"
    • changedInput schema / properties / wait_for / properties / ref / pattern
      Previous value: -"^e\\d+$"New value: +"^(?:p\\d+|f\\d+)?e\\d+$"
  3. Changed4 schema fields changed
    • addedInput schema / properties / compact
      Added value: +{
      +  "description": "When the change is 'content changed', return only the added/removed lines, not the whole screen",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / settle
      Added value: +{
      +  "description": "Wait until the screen stops changing (two equal reads 100 ms apart), up to timeout_ms. Use after any action that starts work. A slow result can still follow a pause, so prefer wait_for when you know the expected text.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / timeout_ms
      Added value: +{
      +  "description": "How long wait_for and settle may take, in ms (default 2000)",
      +  "maximum": 30000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / wait_for
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Use after any action that starts work. Wait until this appears (a ref, a text, or role+name), or disappears with gone: true. The result says Waited: matched or timed out.",
      +  "properties": {
      +    "gone": {
      +      "type": "boolean"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "ref": {
      +      "pattern": "^e\\d+$",
      +      "type": "string"
      +    },
      +    "role": {
      +      "type": "string"
      +    },
      +    "text": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries the burden of return behavior — and it does disclose that the call returns the new screen and that the result is prefixed with one of four 'Change:' states. That is useful, non-obvious context beyond the annotations, though it omits how settle/wait_for/timeout affect the response.

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 sentences, zero filler, with the two scrolling modes front-loaded and the return-format note placed after. Every clause earns its place and nothing is repeated from the schema.

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?

For a 7-parameter tool with a nested wait_for object and no output schema, the description covers the core action and sketches the return shape. It relies on the rich schema for parameter detail, which is reasonable, but does not tie the settle/wait_for parameters to the described result states.

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 86%, so the schema already documents ref, settle, compact, wait_for, session and timeout_ms in detail. The description adds only the meaning of ref in the left/right case ('give the rail's ref'), a marginal increment over the schema; baseline 3 applies.

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 two distinct scopes: the page (down/up) or a horizontal rail (right/left). That is far more precise than the bare name 'scroll', though it never distinguishes itself from siblings like browser_scroll or screen, so an agent must infer which scrolling tool applies.

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 description implies when to use each mode (page vs rail) and notes that a rail requires its ref, which is genuine routing guidance. It gives no explicit when-not or alternative-tool guidance (e.g. versus browser_scroll), leaving the agent to infer the boundary from the description alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.