get_analytics_by_user
Retrieve per-user analytics metrics like agent edits, tabs, models, and more. Filter by date range, specific users, and paginate results to analyze user behavior.
Instructions
Fetch a by-user analytics metric (GET /analytics/by-user/{metric}).
Allowed metrics: agent-edits, tabs, models, top-file-extensions, client-versions, mcp, commands, plans, skills, ask-mode.
Args: metric: Allowlisted metric slug. start_date: Optional start date bound. end_date: Optional end date bound. users: Optional comma-separated emails or user ids. page: Page number (default 1). page_size: Users per page (default 100, max 500 server-side).
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": {
"metric": "<metric>"
},
"name": "get_analytics_by_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| users | No | ||
| metric | Yes | ||
| end_date | No | ||
| page_size | No | ||
| start_date | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||