Read daily usage
get_user_activityThe product's usage per UTC day: pageviews, events, visits, visitors and signed-in users. dimension product gives one row a day in history. screen or event without key gives each screen pattern's or event's pageviews and events added up over the days in keys instead, the most used first, at most 200 (keysHasMore says there were more); with key, history has that one's days. Rolled days come from the nightly rollup: complete false means the latest days aren't rolled yet, so they are missing, not zero. privacyRepair marks days being recalculated after an erasure; they still show. today is today so far, read from raw rows, and null when that took too long (todayUnavailable). visitors, users and users30d count distinct people: never add them across rows or days. These totals name nobody. Reads only what featury already stored, doesn't turn collection on and spends no credits. MANAGER+ required.
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": {
"workspace": "<workspace>",
"project": "<project>"
},
"name": "get_user_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | With screen or event only: one key a previous answer returned, such as "/settings/:id" or "track:Export" | |
| days | No | Days to read: 7, 30 (default) or 90 | |
| project | Yes | Project slug or id | |
| dimension | No | product (the default) for one row a day; screen or event for each screen pattern's or event's totals, or one's days with key | product |
| workspace | Yes | Workspace slug or id |