Event statistics
event_statsCount risk events matching the filters, bucketed by day, week, month, category or country, for trends, comparisons and "how many" questions (for example protests per week in a country). Returns counts only, no event details.
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": {
"group_by": "<group_by>"
},
"name": "event_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Place name(s), e.g. 'Istanbul Kadikoy'; every word must appear in the event's address | |
| date_to | No | Last day, inclusive, UTC (YYYY-MM-DD). Default: today | |
| sources | No | Source domains, e.g. ['reuters.com']; an event matches if any of its sources is one of them | |
| group_by | Yes | How to bucket the event counts | |
| near_lat | No | Latitude of a point; use with near_lon | |
| near_lon | No | Longitude of a point; use with near_lat | |
| countries | No | ISO 3166-1 alpha-2 codes, e.g. ['TR', 'DE']; an event matches any of them | |
| date_from | No | First day, inclusive, UTC (YYYY-MM-DD). Default: 30 days before date_to | |
| radius_km | No | Radius around the point in km, default 10, max 50 | |
| categories | No | Category slugs (any level: main, type or subtype); an event matches any of them | |
| min_sources | No | Minimum number of independent sources | |
| min_importance | No | Minimum importance score, 0-1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |