Get period totals
get_aggregateRetrieve period totals for a site's visitors, pageviews, bounce rate, and visit duration over a chosen date range to answer traffic summary questions.
Instructions
Period totals for one site: visitors, pageviews, bounce_rate, visit_duration. Use this for 'how many visitors did site X get in date range Y' style questions.
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_id": "<site_id>",
"range": "<range>"
},
"name": "get_aggregate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | Date range. Accepts natural strings ('today', 'yesterday', 'last 7 days', 'last 30 days', 'this week', 'last week', 'this month', 'last month') or an explicit 'YYYY-MM-DD..YYYY-MM-DD' range. UTC. If you have separate from/to dates, use the explicit form. | |
| site_id | Yes | Site ID. Get it from list_sites if you don't know it. |