Skip to main content
Glama

scroll_to_element

Scroll the current page to bring a specific element into view using CSS, XPath, or other locators. Ensures the element is visible before performing further actions.

Instructions

Scroll the page to bring an element into view.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNoLocator strategycss
timeoutNoWait timeout in seconds
selectorYesCSS selector, XPath, or other locator value

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and does state the core action and outcome. It does not mention edge cases like missing elements or nested scroll containers, but for a straightforward page-scroll operation the behavior is sufficiently transparent.

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?

A single front-loaded sentence with no filler or redundancy. Every word contributes to identifying the action and target, making it easy for an agent to parse quickly.

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 simple, low-risk browser automation action, the description plus a fully documented schema is enough for an agent to invoke the tool correctly. Minor missing details such as scroll alignment or failure behavior are not essential to making a correct call.

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?

The schema descriptions cover 100% of the three parameters, so the description does not need to explain selector, by, or timeout semantics in detail. The description adds no locator-level meaning beyond what the schema already provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('scroll') and a clear target ('an element'), which distinguishes it from sibling tools like scroll_to_top, scroll_to_bottom, and scroll_by. The phrase 'bring an element into view' unambiguously states the tool's purpose.

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

Usage Guidelines4/5

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

The description clearly implies when to use the tool: when an element needs to be brought into view, typically before interacting with it. It does not explicitly name alternatives or exclusions, but the element-focused wording gives enough context for correct selection among scrolling siblings.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hakanngul/testfly-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server