get_active_users
Retrieve daily, weekly, or monthly active user counts for an app using anonymous activity data to monitor engagement metrics.
Instructions
Get active user count (DAU/WAU/MAU) for a specific app based on anonymous activity pings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app ID to query (app_...) | |
| period | No | Time period: 24h (DAU), 7d (WAU), 30d (MAU). Default: 24h |
Implementation Reference
- index.js:474-479 (handler)The handler implementation for the 'get_active_users' tool, which makes a GET request to '/v1/activity/stats'.
case "get_active_users": { const query = { app_id: args.app_id }; if (args?.period) query.period = args.period; result = await apiRequest("GET", "/v1/activity/stats", { query }); break; } - index.js:274-287 (registration)The MCP tool registration for 'get_active_users', defining its name, description, and input schema.
{ name: "get_active_users", description: "Get active user count (DAU/WAU/MAU) for a specific app based on anonymous activity pings.", inputSchema: { type: "object", properties: { app_id: { type: "string", description: "The app ID to query (app_...)", }, period: { type: "string", description: "Time period: 24h (DAU), 7d (WAU), 30d (MAU). Default: 24h",