query_events
Analyze event data over time with segmentation by properties to identify trends and patterns in user behavior.
Instructions
Query event data with segmentation. Returns time-series event counts, optionally segmented by a property.
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": {
"event": "<event>",
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "query_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | Event name to query | |
| from_date | Yes | Start date (YYYY-MM-DD) | |
| to_date | Yes | End date (YYYY-MM-DD) | |
| on | No | Property to segment by (e.g. "properties[\"$browser\"]") | |
| unit | No | Time unit for bucketing (default: day) | |
| where | No | Filter expression | |
| limit | No | Max number of segments to return |