Skip to main content
Glama

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

GA4 archive

ga4_archive
Read-only

Google Analytics 4 data from GSC PAP's own archive, without calling Google. Works when the Google connection has stopped working, and for the months before the user's first sign-up snapshot.

Without property_id: the archived properties and the dates each covers. With property_id: one scope summed over the window, or per stored period with by_period=true.

Scopes: total, channel (sessionDefaultChannelGroup), source_medium, landing_page, page (pagePath), event (eventName), country, device.

Months before the first snapshot are stored as whole months; a month is used when it overlaps the window, and covered.whole_months lists them. Summed rows leave out totalUsers and activeUsers, which do not add up across days; by_period gives them per stored day or month. Use the live ga4_* tools when the connection works: they are exact for any window.

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

Input Schema

NameRequiredDescriptionDefault
daysNolast N days ending end_date (default 28).
limitNomax rows, default 50.
scopeNosee above, default total.total
intentNoOptional: the user's goal in a few words. No site names or URLs.
end_dateNo
by_periodNoone row per stored day or month instead of a sum.
start_dateNo
property_idNonumeric or "properties/XYZ"; omit to list what is archived.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and destructiveHint=false, and the description adds substantive detail beyond that: whole-month storage for pre-snapshot months, overlap-based month matching, the covered.whole_months field, and the fact that summed rows omit totalUsers/activeUsers because they do not aggregate across days. That last point is exactly the kind of non-obvious caveat an agent needs; only the response shape beyond the one referenced field is left to the output schema.

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?

Front-loaded with the core distinction and the use case, then organized into mode, scope list, and caveats. It is dense and every sentence carries information, though the whole-months paragraph is slightly wordier than strictly necessary.

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

Completeness4/5

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

An output schema exists, so return values need not be spelled out, and the description still flags the one output field with surprising semantics. Combined with the annotation safety profile and the documented scope list, an agent has enough to call it correctly; minor gaps are intent and date-format expectations.

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

Parameters5/5

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

Schema coverage is 75%, but the description supplies meaning the schema does not: the full enumeration of the eight scope values with their underlying GA4 fields (sessionDefaultChannelGroup, pagePath, eventName, etc.), the omit-property_id listing behavior, and the semantics of by_period versus summation. Only intent and start_date lack added explanation.

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?

States a specific verb and resource — GA4 data served from GSC PAP's own archive rather than the Google API — and immediately contrasts it with the live ga4_* tools, so an agent can distinguish it from siblings like ga4_report or ga4_overview without reading schemas.

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?

Gives explicit when-to-use conditions: when the Google connection has stopped working, and for months preceding the first sign-up snapshot. It also names the alternative (live ga4_* tools, exact for any window) and the condition that selects it, plus the two operating modes based on whether property_id is supplied.

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.