Skip to main content
Glama

GSCPAP - Google Search Console, GA4, Bing Webmaster Tools & PageSpeed MCP

GA4 top landing pages

ga4_top_pages
Read-only

Top pages by sessions over the last N days (GA4 pagePath).

Returns one row per pagePath with sessions, activeUsers, screenPageViews, bounceRate, averageSessionDuration. These are not landing pages: a row's sessions are every session that viewed the page, from any channel, so a session is counted once on each page it visited. The rows add up to more than the site's total sessions (the gap grows with pages per session), and activeUsers repeat across rows the same way. Take totals from ga4_overview. To compare pages with Search Console clicks, use correlate_gsc_to_ga4, which counts Google organic sessions that landed on each page.

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": {
      "property_id": "<property_id>"
    },
    "name": "ga4_top_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNolookback window (1-365), default 28
limitNomax rows (1-1000), default 20
intentNoOptional: the user's goal in a few words. No site names or URLs.
end_dateNooptional YYYY-MM-DD. Alone, the window is `days` days ending on this date
start_dateNooptional YYYY-MM-DD. With it the window is start_date to end_date (or today), and days is ignored
property_idYesGA4 property id

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Optional: the user's goal in a few words. No site names or URLs.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / end_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "optional YYYY-MM-DD. Alone, the window is `days` days\nending on this date"
      +}
    • addedInput schema / properties / start_date
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "optional YYYY-MM-DD. With it the window is start_date\nto end_date (or today), and days is ignored"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only annotations, the description explains the crucial counting behavior: sessions are counted once on every page visited, rows can sum to more than total site sessions, and activeUsers repeat across rows. This is exactly the kind of non-obvious behavioral context an agent needs to avoid misinterpreting results.

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?

The description is front-loaded with the core purpose, then immediately surfaces the key caveat and the relevant alternatives. Despite its length, every sentence carries useful disambiguation or interpretation guidance, with no redundant filler.

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?

For a read-only reporting tool with an output schema and fully described parameters, the description covers the essential purpose, counting semantics, and alternatives. Nothing material is missing for correct invocation, and the non-additivity caveat is especially complete.

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 description coverage is 100%, so the schema already documents all six parameters, including days, limit, and date overrides. The description reinforces the lookback-window concept and metric meanings but does not add syntax or parameter-specific detail beyond the schema, so baseline 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 states a specific verb and resource: top pages by sessions over the last N days, keyed by GA4 pagePath. It immediately clarifies that these are not landing pages, explicitly correcting the potentially misleading title. This distinguishes the tool from landing-page tools and from ga4_overview.

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

Usage Guidelines5/5

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

It explicitly directs agents to ga4_overview for site totals and to correlate_gsc_to_ga4 when comparing pages with Search Console clicks. It also warns that this tool should not be treated as a landing-page report, giving clear when-to-use and when-not-to-use guidance.

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.