Skip to main content
Glama

Scroll element

scroll

Pages through a Windows desktop app's UI element or its container by one or more pages in a chosen direction to reveal off-screen content.

Instructions

Scroll the element (or its scrollable ancestor) by pages in a direction.

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

Input Schema

NameRequiredDescriptionDefault
appYes
pagesNo
directionYes
element_indexYesElement index from the last get_app_state, as a string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

The annotation only sets readOnlyHint=false, so the burden is largely on the description. It does disclose the non-obvious fallback to the nearest scrollable ancestor, which is real behavioral value, but says nothing about whether it waits for lazy-loaded content, what happens at scroll boundaries, or whether the scroll is smooth or instantaneous.

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?

One front-loaded sentence with no filler and no redundancy. It is efficient, but at this length it borders on under-specification rather than tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A four-parameter, state-mutating tool with 25% schema coverage and no output schema needs more: default page count, the meaning of app, boundary behavior, and return semantics are all absent. The single sentence does not give an agent enough to call it confidently the first time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, with just element_index documented, so the description must compensate. It hints at 'pages' and 'direction' but never states the 1-20 bounds, the default page count when omitted, or what the 'app' identifier refers to, leaving three of four parameters unexplained.

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?

The description states a specific verb (scroll) and resource (the element or its scrollable ancestor) plus the unit and axis of movement (pages, direction). That is clearly distinct from sibling actions such as click, type_text, or browser_snapshot, though it never names a sibling to contrast with.

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 only implied: an agent can infer this is for revealing off-screen content inside an element. The parenthetical 'or its scrollable ancestor' hints at fallback behavior, but there is no statement of when to prefer this over get_app_state, browser_snapshot, or a click-driven scroll, and no prerequisites.

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