Skip to main content
Glama

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

Implementation Reference

  • 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",
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the data source ('anonymous activity pings'), which adds some context, but does not cover critical aspects such as whether this is a read-only operation, potential rate limits, authentication needs, or what the output looks like (e.g., numeric count or structured data). For a tool with no annotations, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('Get active user count') and includes all necessary details (metrics, app specificity, data source) without any redundant or extraneous information. Every word earns its place, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is adequate but incomplete. It covers the purpose and data source but lacks details on behavioral traits, output format, and usage guidelines. Without annotations or output schema, the description should do more to compensate, but it provides a minimal viable explanation, leaving room for improvement in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('app_id' and 'period') with descriptions. The description adds marginal value by implying the parameters relate to querying user counts for an app over time periods, but it does not provide additional syntax, format details, or constraints beyond what the schema states. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get active user count') and resource ('for a specific app'), distinguishing it from sibling tools like 'get_active_users_all_apps' by specifying 'for a specific app' and from 'get_app' by focusing on user metrics rather than app details. It includes precise metrics (DAU/WAU/MAU) and data source ('anonymous activity pings'), making the purpose highly specific and differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage context by specifying 'for a specific app based on anonymous activity pings,' which suggests it's for analytics purposes. However, it does not explicitly state when to use this tool versus alternatives like 'get_active_users_all_apps' (which might cover multiple apps) or other analytics tools, nor does it mention exclusions or prerequisites. The guidance is clear but lacks explicit alternatives or when-not-to-use details.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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