affiliate_build_brand_snapshot
Pull and normalize a brand's affiliate performance across networks into a time-windowed snapshot (yesterday, 7-day, 30-day, YTD), persist locally, and return it with honest network health reporting.
Instructions
Pull one brand's affiliate performance across the networks it is bound to in brands.json, normalise it into a single time-windowed dataset (yesterday, rolling 7-day, rolling 30-day, and year-to-date), persist it locally, and return the snapshot. Clicks come from advertiser performance and the commission status split from transactions; per-network health is count-honest, so a partial pull is reported as such and never totalled as if every network responded. This snapshot powers the free tables; the CSV export and the AI-action bundle are separate tools. Requires the brand to be bound to advertiser-side networks that report programme performance.
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": {
"brand": "<brand>"
},
"name": "affiliate_build_brand_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | ||
| networks | No | ||
| timezone | No |