get_events
Retrieve aggregated custom event counts by name for a selected date range to analyze which events occur most and track their trend over time.
Instructions
Return custom events aggregated by name for a date range.
Args:
website_id: Website id from list_websites.
start_at: Range start (ISO date/datetime or epoch milliseconds).
end_at: Range end; defaults to now.
days: Length of the default range when start_at is omitted.
Returns totalEvents, events ([{"name": ..., "count": ...}], most
frequent first) and the per-bucket series.
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_events"
}
}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 | |||