get_active_users_all_apps
Retrieve active user statistics (DAU/WAU/MAU) across all applications in a single query to monitor platform engagement and usage patterns.
Instructions
Get active user counts across all apps at once. Queries each app's DAU/WAU/MAU stats.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period: 24h (DAU), 7d (WAU), 30d (MAU). Default: 24h |
Implementation Reference
- index.js:481-500 (handler)The handler logic for the 'get_active_users_all_apps' tool, which fetches all apps and then retrieves active user stats for each.
case "get_active_users_all_apps": { const apps = await apiRequest("GET", "/v1/apps"); const appList = apps.apps || apps; const period = args?.period || "24h"; const stats = await Promise.all( appList.map(async (app) => { try { return await apiRequest("GET", "/v1/activity/stats", { query: { app_id: app.app_id, period }, }); } catch { return { app_id: app.app_id, period, active_users: 0, error: "Failed to fetch stats" }; } }) ); result = stats; break; } case "get_sentiment_insights": { - index.js:293-298 (registration)The MCP tool registration for 'get_active_users_all_apps'.
{ name: "get_active_users_all_apps", description: "Get active user counts across all apps at once. Queries each app's DAU/WAU/MAU stats.", inputSchema: { type: "object",