user_activity
Composite snapshot of a specific user's activity on a project. Returns an identity block (visitorId, userEmail, userName, firstSeen, lastSeen), total pageviews, total custom events, session count, top pages this user visited, their most-fired event names, and their 20 most recent events with props. Use this for 'how is dancleary54@gmail.com using my app?' style questions — one call, full picture. For ad-hoc drill-down (just a count, just recent events) pass user to the individual tools instead. Default window is the last 7 days.
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": {
"project": "<project>",
"user": "<user>"
},
"name": "user_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | Yes | User identifier. Accepts userEmail (case-insensitive, e.g. 'dan@example.com') or visitorId (the exact string passed as userId on the original track() call). | |
| since | No | Start of window as unix milliseconds. Defaults to 7 days ago. | |
| until | No | End of window as unix milliseconds. Defaults to now. | |
| project | Yes | Project name (case-insensitive, e.g. 'slopbench') or project id from list_projects. |