get_web_stats
Website analytics for one site (id, data-site id, or domain): visitors, pageviews, sessions, bounce rate, average visit length, custom events, visitors right now, a timeseries, and top values for each breakdown (default page, source, country). range: last_24_hours, today, yesterday, last_7_days, last_30_days, last_90_days, last_365_days, this_month, last_month, this_year, last_year, all_time, custom (custom needs from_date and to_date). breakdowns: page, entry, exit, referrer, source, ai, utm_source, utm_medium, utm_campaign, utm_content, utm_term, country, region, city, device, os, browser, event. filters are ANDed, e.g. [{"dim": "page", "op": "is", "value": "/pricing"}]. compare: previous_period, previous_year, custom (custom needs compare_from and compare_to) adds the same numbers for that period; today compares with yesterday and last_24_hours with the 24 hours before, up to the same time. Event rows have value_sum as value × 100 (4900 = 49.00) with its currency, and conversion (share of visitors).
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": "<site>"
},
"name": "get_web_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | ||
| range | No | last_7_days | |
| compare | No | ||
| filters | No | ||
| to_date | No | ||
| from_date | No | ||
| breakdowns | No | ||
| compare_to | No | ||
| compare_from | No | ||
| breakdown_limit | No | ||
| include_timeseries | No |