run_report
Run one of this account's configured reports and return its rows. Reports are pre-aggregated: their time filter only supports the last 1, 7, or 30 days. Filters you omit fall back to the report's defaults (latest version, configured attribute filter defaults) EXCEPT threshold, which is never applied unless you pass it. The result echoes applied_filters (what actually ran) and total_row_count. A link to the report, pre-filtered to exactly what ran, is shown to the user automatically.
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": {
"report_type": "<report_type>",
"report_id": "<report_id>"
},
"name": "run_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows (and most recent time_series days) to return (default 50, max 100). | |
| filters | No | Optional filter overrides. Known names: version_id (values are version ids from list_versions), occurred_after (one value: "1", "7" or "30" days), occurred_between (two ISO dates: from, to; event, retention, revenue, and session reports only), event_type_id (values from list_event_types), threshold (two values: min and max total sample count, e.g. ["40", ""] for min only; filters out low-sample rows), or a configured attribute filter name from the catalog with the values to keep. | |
| report_id | Yes | The report's id from the report catalog. | |
| report_type | Yes | The kind of report, as listed in the report catalog. |