Query raw events (legacy)
query_eventsLegacy tool: lists events from the v2 store, which keeps only about the last 7-14 days. search_events lists the same events from data_from on (about the last 6 months), with more filters. Paged with meta.cursor.next_cursor.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Pagination cursor from a previous response's meta.cursor.next_cursor. | |
| source | No | Filter by traffic source | |
| status | No | Filter by event status. Default: "processed" (real, successfully-recorded events — what nearly every analytics question is about). Override only for debugging: "pending" (queued), "error" (processing failed), "rejected" (validation/spam blocked). | |
| date_to | Yes | End date (YYYY-MM-DD) | |
| has_epik | No | Only events arriving with a Pinterest epik | |
| per_page | No | Items per page (default 50, max 1000 on v2). v2 SQLite reads are fast enough to prefer larger pages over more cursor round-trips. | |
| date_from | Yes | Start date (YYYY-MM-DD) | |
| has_adfcd | No | Only events arriving with an Adform adfcd | |
| has_gclid | No | Only events arriving with a Google Ads gclid | |
| event_name | No | Filter by event name | |
| has_fbclid | No | Only events arriving with a Facebook fbclid | |
| has_lsclid | No | Only events arriving with an lsclid | |
| has_scclid | No | Only events arriving with a Snapchat scclid | |
| has_ttclid | No | Only events arriving with a TikTok ttclid | |
| has_ga4clid | No | Only events arriving with a GA4 client ID | |
| has_msclkid | No | Only events arriving with a Microsoft msclkid | |
| has_rdt_cid | No | Only events arriving with a Reddit rdt_cid | |
| server_name | No | Server name (required when connected to multiple servers). | |
| container_id | Yes | Container ID (starts with "trc_"). | |
| has_li_fat_id | No | Only events arriving with a LinkedIn li_fat_id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| events | Yes | ||
| warnings | No |