Skip to main content
Glama

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
NameRequiredDescriptionDefault
periodNoTime period: 24h (DAU), 7d (WAU), 30d (MAU). Default: 24h

Implementation Reference

  • 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",

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Stig-Johnny/cutie-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server