traffic_report_datapack
Compute weekly traffic data pack across Google Search Console, Bing, GA4, and Google Ads, handling API lags and isolating failures to warnings. Provides pre-computed cross-references for LLM analysis.
Instructions
Complete, deterministic data pack for the weekly traffic report (READ-ONLY).
Folds the traffic skill's GSC / Bing / GA4 / Google Ads batches plus LLM-referral gathering into one Python call: computes the Mon–Sun target + previous weeks (GSC gets its ~3-day lag), pulls every metric, and pre-computes the cross-references the skill used to ask the LLM to derive — the "Bing leads Google" candidate list and any emerging AI-surface referrer not yet in the curated list.
Each platform batch is isolated so one API failure degrades to a warnings entry
instead of aborting the pack.
Args: week_ending: Anchor date YYYY-MM-DD (default: today). weeks_back: Completed weeks back to target (default: 1 = last week).
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": "traffic_report_datapack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks_back | No | ||
| week_ending | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |