Skip to main content
Glama

Scroll depth for one page

get_page_scroll
Read-onlyIdempotent

Scroll depth for one exact page path, independent of top-page ranking. Returns median maximum depth (0–100 percent), measured and tracked page-view counts, measurement coverage (0–1 fraction), and 25/50/75/100% milestone counts and shares of measured views (0–1 fractions). Missing median and shares are null, not zero. Imported history is excluded. Uses the same date range, visit filters and bot/hidden-country exclusions as the Page panel. A page filter narrows visits; path selects the exact page within those visits. Measures content exposure, not reading; short pages can reach 100% without scrolling.

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": {
      "path": "<path>"
    },
    "name": "get_page_scroll"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive (YYYY-MM-DD).
fromNoFirst day (YYYY-MM-DD, site time zone). Use with to instead of period.
pathYesExact page path from get_breakdown with dim=page, e.g. /pricing. Do not pass the full URL.
siteNoSite domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site.
periodNoTime range. Default 30d. today, yesterday, 24h, 7d, 30d, 90d, 12m, wtd, mtd, ytd, all.
filtersNoOnly visits that match every filter. A value is "is": {"country": "US"}; a list is "is any of": {"country": ["PT", "ES"]}; an object picks the operator: {"page": {"contains": "/blog"}}, {"channel": {"is_not": ["Direct", "Email"]}}, {"page": {"not_contains": "/admin"}}. Operators: is, is_not, contains, not_contains (case-insensitive). "visitor" is "new" or "returning". "ad" is an ad campaign as "google:<campaign id>" or "meta:<campaign id>" (the visits that the Ads page counts for it). Use "(none)" for empty values; countries take ISO codes or English names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filters / propertyNames / enum
      Previous value: -[
      -  "channel",
      -  "referrer",
      -  "campaign",
      -  "keyword",
      -  "source",
      -  "hostname",
      -  "entry",
      -  "exit",
      -  "country",
      -  "region",
      -  "city",
      -  "browser",
      -  "os",
      -  "device",
      -  "page",
      -  "goal",
      -  "visitor",
      -  "ad"
      -]New value: +[
      +  "channel",
      +  "referrer",
      +  "campaign",
      +  "keyword",
      +  "source",
      +  "hostname",
      +  "entry",
      +  "exit",
      +  "country",
      +  "region",
      +  "city",
      +  "browser",
      +  "os",
      +  "device",
      +  "page",
      +  "goal",
      +  "visitor",
      +  "ad",
      +  "assistant"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses that imported history is excluded, that missing median and shares are null rather than zero, that values are median maximum depth and coverage fractions, and that measurements follow the Page panel's filter and bot/hidden-country rules. The caveat that this measures content exposure, not reading, and that short pages hit 100% without scrolling, is exactly the kind of interpretive context a caller could not infer elsewhere.

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?

Return shape and units come first, then data-quality caveats, then filter semantics, then the interpretive note — a well front-loaded order. The single dense middle sentence listing milestones is heavy but each clause carries distinct information, so little could be cut without loss.

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

Completeness5/5

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

With no output schema, the description carries the return contract itself and does so fully: metrics, units, null behavior, exclusion of imported history, and the caveat about what the metric actually means. Nothing an agent needs to call this correctly for a single filtered page is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: path selects the exact page within an already-filtered visit set, and the date range/filter/exclusion semantics mirror the Page panel. The interaction between the page filter and path is a real clarification beyond the field definitions.

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 opening sentence names the resource and its scope precisely: scroll depth for one exact page path, explicitly independent of top-page ranking. That scoping separates it from list-style siblings, though the description never names a specific alternative tool for the agent to route away from.

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?

It explains how to target a page ('A page filter narrows visits; path selects the exact page within those visits') and that the same date range, filters and exclusions as the Page panel apply, which is genuinely useful invocation context. It stops short of explicit when-to-use/when-not guidance relative to reporting siblings such as get_breakdown.

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.

Resources