Skip to main content
Glama

scroll_to

Swipes a screen until a specified element becomes visible, then returns its tap coordinates. Skips swiping when the element is already on screen.

Instructions

Swipe until an element becomes visible (up to max_swipes), then report its tap coordinates. No-op if it is already on screen.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scroll_to"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoVisible text to look for
directionNodown | up
max_swipesNoSwipes to attempt (default 6)
resource_idNoresource-id substring
content_descNocontent-desc substring

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does add real behavior: bounded retries via max_swipes and an idempotent no-op when already visible. However it is silent on the failure path — what happens if the element is never found after max_swipes (error, empty result, or stale coordinates), which is the key thing an agent needs to branch on.

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, no filler, with the core action front-loaded and the edge case (already visible) trailing. Every clause carries information.

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?

For a five-parameter, no-annotation, no-output-schema tool, the description covers the happy path and declares the return value (tap coordinates). It falls short on the not-found failure mode and on the locator-parameter relationships, which an agent must know to call it correctly.

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 coverage is 100%, so the parameters are already documented and baseline 3 applies. The description ties max_swipes to the retry behavior, but it does not clarify the crucial ambiguity that all five parameters are optional and that text/resource_id/content_desc are alternative locator strategies rather than cumulative filters.

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: swipes repeatedly until an element is visible, then reports tap coordinates, plus the already-visible short-circuit. An agent can distinguish this from the plain 'swipe' sibling by implication, but the description never names that alternative explicitly.

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 'no-op if it is already on screen' clause gives one usage condition, implying this is the tool to reach for when a target may be off-screen rather than a one-shot manual swipe. There is no explicit 'use swipe instead when...' routing, no statement that a locator must be supplied, and no guidance on choosing direction or max_swipes.

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