Skip to main content
Glama
Browser MCP Server

Browser MCP Server

scroll_to_element

Scrolls a specified page element into view using human-like motion, so agents can bring off-screen targets into the viewport before interacting.

Instructions

Scroll element into view with human-like motion.

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": {
      "selector": "<selector>"
    },
    "name": "scroll_to_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
selectorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.4/5.0
Behavior1/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, yet it discloses essentially nothing beyond the name. It does not say whether the call waits for the element, whether it throws when the selector is unresolvable, whether the scroll is auto-scrolled by the browser or animated, or what 'human-like motion' implies for timing (delays, easing, side effects).

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

Conciseness3/5

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

A single short, front-loaded sentence with no filler, which is good. However, the brevity is under-specification rather than efficiency: the only distinguishing detail ('human-like motion') is left undefined, so the sentence does not earn its place as full guidance.

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?

For a browser-automation tool with no annotations, no output schema, and two undocumented parameters, the definition is far too thin. It should at minimum cover selector format, pageId semantics/default, not-found behavior, and whether the call blocks until the scroll completes.

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 0% for both parameters. The description never mentions 'selector' (CSS syntax? XPath? text?) or 'pageId' (which page/tab the scroll targets, or the default when omitted). Only the generic word 'element' gestures at the selector param, leaving pageId completely undocumented.

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: 'Scroll element into view'. The addition of 'human-like motion' further differentiates it from a plain page-level scroll, so an agent can reasonably tell it apart from the sibling 'scroll' tool without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this instead of the sibling 'scroll', no precondition (e.g. element must exist or be attached), and no note about what happens if the selector matches nothing. The agent must infer usage entirely from the verb.

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