Skip to main content
Glama
ga4-gsc-mcp

ga4-gsc-mcp

by kkvlabs

Top pages

top_pages
Read-onlyIdempotent

Rank pages by Search Console clicks or GA4 sessions and join both datasets to compare search traffic with visits, engagement, and key events.

Instructions

Which pages get the most search clicks and visits? Search Console pages joined with GA4 landing-page sessions, key events and engagement.

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": "top_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite as a domain or Search Console URL, e.g. "example.com" or "sc-domain:example.com". Optional when the credentials see one site.
limitNoRows to return, default 25, max 500.
formatNojson (default) or csv for a table you can paste into a spreadsheet.
periodNoNamed date range ending on the last settled day. Default last_28_days.
sort_byNoRank by Search Console clicks (default) or GA4 sessions.
end_dateNoEnd date YYYY-MM-DD. Defaults to the last settled day (Search Console lags 2 to 3 days).
start_dateNoStart date YYYY-MM-DD. Overrides period.
ga4_propertyNoGA4 property ID (numbers only). Optional: found from the site's web stream when left out.
page_containsNoOnly pages whose URL contains this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context: this is a join across two systems, so results depend on both Search Console and GA4 data being available, and the returned metrics include key events and engagement. It does not disclose how unjoined pages or a missing GA4 property are handled, which is the remaining behavioral gap.

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?

Two tight sentences with no filler, and the cross-source nature is front-loaded before the metric list. The opening question is slightly indirect for a tool description compared with a direct verb like 'List top pages', but it efficiently conveys intent.

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?

With nine parameters, no output schema, and a two-source join, the definition is lean. The metric list gestures at returned columns, but it does not say what a row actually contains, whether pages without GA4 matches still appear, or how results are ordered when sort_by is unset. It is adequate but leaves real questions open for a tool of this complexity.

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?

All nine parameters carry full schema descriptions including defaults, ranges, enums and the Search Console lag note, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond what the schema already states. Baseline 3 is appropriate at 100% coverage.

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 description names the resource (pages) and, crucially, the two data sources it stitches together: Search Console pages joined with GA4 landing-page sessions, key events and engagement. That tells an agent this is a cross-source page ranking, distinct from query- or channel-level tools. It frames this as a question rather than a verb phrase, which softens it, and it never names a sibling to contrast against.

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?

Usage is only implied by the framing question about which pages get the most clicks and visits. There is no explicit 'use this when', no prerequisites (e.g. GA4 must be connected), and no guidance on when a sibling such as top_queries or site_overview would be the better pick. An agent can infer the general use case but not the boundaries.

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