get_summary
Aggregated performance snapshot for one container over a date range. Fast — hits the pre-aggregated reporting endpoint, not the raw events table.
USE WHEN the user asks:
"How is my site performing last week?"
"How many events / what's the total value / how many emails collected?"
"What's my recovery rate / how many ad-blocked events?"
"Quick breakdown by traffic source"
Returns totals, consent stats, recovery (adblock + restricted-browser) stats, and a per-source breakdown — all in one call. This is the DEFAULT first call for any single-period performance question. Only escalate to get_report when the user wants a breakdown by a specific dimension (event_name, day, hour, device, browser) or a time series. Date range required, max 30 days.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | End date (YYYY-MM-DD) | |
| currency | No | Currency code, e.g. 'EUR', 'USD' | |
| date_from | Yes | Start date (YYYY-MM-DD) | |
| attribution | No | Attribution model (default: last_click) | |
| server_name | No | Server name (required when connected to multiple servers). | |
| container_id | Yes | Container ID (starts with "trc_") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | Yes | ||
| summary | Yes | ||
| date_from | Yes | ||
| attribution | Yes |