Skip to main content
Glama

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

Join Search Console pages to GA4

correlate_gsc_to_ga4
Read-only

Per page: Google Search clicks (Search Console) next to what those visits did on the site (GA4 sessions, key events, revenue).

Answers questions like "which pages bring search clicks AND convert?" or "which top-ranking pages get zero conversions?". Takes the top pages by Search Console clicks and attaches GA4 numbers for the same pages over the same dates.

What the GA4 numbers count: sessions that STARTED on the page (GA4 landingPage) and came from Google organic search (sessionSource "google" AND sessionMedium "organic"). ga4_conversions, ga4_revenue and ga4_engagement_rate belong to those same sessions, so a key event counts even if it happened on a later page of the visit. ga4_conversions is the number of GA4 key events, not of converting sessions, so it can exceed ga4_sessions. Every row carries ga4_scope saying what GA4 counted.

Why this scope: a Search Console click is a click on a Google result that lands on the page, so the GA4 side has to be landing sessions from Google. Counting every session that viewed the page (pagePath) mixes in all channels and internal navigation, and inflates GA4 far above GSC. The filter is google / organic rather than the "Organic Search" channel group because that group also includes Bing, Yandex, DuckDuckGo and others, which Search Console never counts.

Do not expect ga4_sessions to equal gsc_clicks. GA4 is usually lower: visitors who block analytics or decline consent, and visits that leave before the tag loads, are clicks with no session; visits whose referrer is lost are filed under (direct) / (none), not google / organic; several clicks within one visit are one session. GA4 can be higher where its google / organic includes Google Images or Discover visits, which Search Console's web numbers leave out. Per page, Search Console credits a click to the canonical URL while GA4 records the URL actually opened, so duplicates, redirects and language variants move numbers between rows. Search Console dates are Pacific Time, GA4 uses the property's time zone. Use the numbers to compare pages, not to expect a 1:1 match.

Page matching: joined on (host, path). The Search Console URL's host and path are compared to GA4 hostName + landingPage, with lowercase host, percent-decoding, trailing slash ignored ("/foo" and "/foo/" are the same page) and no query string (GA4 landingPage never has one). Search Console URLs that fall on the same key (http and https, "/foo" and "/foo/", query string variants) are merged into one row: clicks and impressions summed, position impression-weighted, and the merged URLs listed in gsc_urls. Hosts stay separate, so a subdomain of an sc-domain property is not credited with the main domain's numbers; one GA4 has no data for gets 0.

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

Input Schema

NameRequiredDescriptionDefault
daysNolookback window, default 28. The window ends 2 days ago (Search Console lag) and is the same for both sides.
limitNomax pages to return, default 30
intentNoOptional: the user's goal in a few words. No site names or URLs.
site_urlYesSearch Console property (must be authorized)
property_idYesGA4 property id (must point at the same site)

Output Schema

NameRequiredDescriptionDefault

No arguments

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. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses a great deal: GA4 counts landing sessions from google/organic only, key events are attributed to the landing session even if they fire later, ga4_conversions can exceed ga4_sessions, ga4_scope labels every row, and the two sources use different time zones. It also explains why GSC clicks and GA4 sessions diverge, which is behavioral context no annotation could carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the paragraphs are logically ordered (what it does, what GA4 counts, why that scope, why numbers differ, how pages are matched). But at roughly 450 words it is well past what an agent needs to select and invoke the tool; the "Why this scope" rationale and the long divergence list could be trimmed without losing call correctness.

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 two-source join with an output schema, the description covers everything an agent needs: required inputs must point at the same site, the matching key and normalization rules, merge behavior for duplicate GSC URLs, and the fact that unmatched GA4 pages return 0. Return-value shape is left to the output schema, which is correct.

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 days, limit, site_url, property_id and intent are already documented in the schema. The description adds only one parameter-adjacent fact — that the date window ends two days ago and is identical on both sides — and says nothing extra about limit, intent or what "same site" means for property_id. Baseline 3 is appropriate when the schema does the heavy lifting.

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 first line states a specific verb and resource set: per-page Google Search clicks from Search Console joined with GA4 sessions, key events and revenue for those same pages. It is immediately distinguishable from single-source siblings like ga4_top_pages or ga4_report because the join and its exact scope are named.

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?

It gives concrete example questions the tool answers ("which pages bring search clicks AND convert?", "which top-ranking pages get zero conversions?") and states the analytical stance: "Use the numbers to compare pages, not to expect a 1:1 match." It never explicitly routes the agent to an alternative tool or states a when-not-to-use case, which keeps it short of a 5.

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.