query_stats
Aggregate event signals into summary statistics for any geographic area and time window: total count plus daily and category trends. Returns roll-ups, not rows, to minimize cost.
Instructions
Aggregate statistics over the signal corpus — total event count plus per-category and per-day breakdown (trend) for a bounding box and date window. Cheaper than query_signals (returns roll-ups, not rows). NOTE the unit: total counts article-deduped events (meta.population = article_deduped_events), which is NOT cluster-collapsed, so it is >= the query_signals count for the same window. Costs 1 token(s) per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | Bounding box [minLon, minLat, maxLon, maxLat] (WGS84). Omit for worldwide. | |
| date | No | Window end date, YYYY-MM-DD (UTC). Defaults to today. | |
| days | No | Window length in days. Defaults to 1. | |
| categories | No | Restrict to these categories. Omit for all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | Query echo, token charge/balance (meta.tokens), and pagination where applicable. | |
| stats | Yes | ||
| summary | No | One-line natural-language summary of the result, ready to relay to a user. |