Read an app's analytics
get_app_analyticsReads event analytics as aggregate totals, distinct actors, daily counts, N+ repeats, property breakdowns, and 1/7/30 retention, helping answer signup and return-rate questions without a dashboard.
Instructions
Reads the product events a workspace's app records with analytics.track — as aggregates only: totals and distinct actors per event, per-day counts, actors who did something N+ times, counts by a property value, and retention cohorts (day 1/7/30). Never a list of who did what. The request has the same shape as analytics.report() in a block. Use it to answer 'how many people arrived / signed up / came back after 7 days' without writing a dashboard first.
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": {
"workspaceId": "<workspaceId>"
},
"name": "get_app_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Window in days (default 30). | |
| daily | No | ||
| events | No | ||
| atLeast | No | ||
| retention | No | ||
| breakdowns | No | ||
| workspaceId | Yes |