GA4 archive
ga4_archiveGoogle 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
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | last N days ending end_date (default 28). | |
| limit | No | max rows, default 50. | |
| scope | No | see above, default total. | total |
| intent | No | Optional: the user's goal in a few words. No site names or URLs. | |
| end_date | No | ||
| by_period | No | one row per stored day or month instead of a sum. | |
| start_date | No | ||
| property_id | No | numeric or "properties/XYZ"; omit to list what is archived. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||