get_stats
Retrieve Umami analytics summary totals for a date range, including visitors, pageviews, visits, bounces, and total time, plus comparison-period figures.
Instructions
Return summary totals for a date range.
Args:
website_id: Website id from list_websites.
start_at: Range start as an ISO date/datetime or epoch milliseconds.
Defaults to days before end_at.
end_at: Range end; defaults to now. A bare date includes that whole day.
days: Length of the default range when start_at is omitted.
Returns visitors, pageviews, visits, bounces, totaltime (seconds) and the same figures for the comparison period.
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": {
"website_id": "<website_id>"
},
"name": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| end_at | No | ||
| start_at | No | ||
| website_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||