Skip to main content
Glama

Read daily usage

get_user_activity
Read-only

The product's usage per UTC day: pageviews, events, visits, visitors and signed-in users. dimension product gives one row a day in history. screen or event without key gives each screen pattern's or event's pageviews and events added up over the days in keys instead, the most used first, at most 200 (keysHasMore says there were more); with key, history has that one's days. Rolled days come from the nightly rollup: complete false means the latest days aren't rolled yet, so they are missing, not zero. privacyRepair marks days being recalculated after an erasure; they still show. today is today so far, read from raw rows, and null when that took too long (todayUnavailable). visitors, users and users30d count distinct people: never add them across rows or days. These totals name nobody. Reads only what featury already stored, doesn't turn collection on and spends no credits. MANAGER+ required.

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": {
      "workspace": "<workspace>",
      "project": "<project>"
    },
    "name": "get_user_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoWith screen or event only: one key a previous answer returned, such as "/settings/:id" or "track:Export"
daysNoDays to read: 7, 30 (default) or 90
projectYesProject slug or id
dimensionNoproduct (the default) for one row a day; screen or event for each screen pattern's or event's totals, or one's days with keyproduct
workspaceYesWorkspace slug or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/destructive annotations, it discloses real gotchas: rolled days come from a nightly rollup so complete=false means missing, not zero; privacyRepair days still appear; today is partial and can be null with todayUnavailable. It also warns that visitors/users/users30d are distinct counts that must never be summed across rows or days, which is exactly the kind of trap annotations cannot convey.

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

Conciseness3/5

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

It is front-loaded with what is returned, but the middle is a run-on: 'screen or event without key gives each screen pattern's or event's pageviews and events added up over the days in keys instead, the most used first, at most 200...' packs three ideas into one unpunctuated clause. The dense naming of response fields (complete, privacyRepair, keysHasMore, todayUnavailable) is information-dense but could be structured as a list.

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

Completeness5/5

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

With no output schema, the description carries the full return-shape burden and does so: it names the per-day metrics, the group-by dimensions, the truncation flag, the rollup completeness flag, the privacy repair flag, and the partial-today behavior. Combined with the prerequisite and cost note, an agent has enough to call and interpret this correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already defines all five parameters; the description still adds value by explaining how dimension and key combine and that results are capped at 200 with keysHasMore signaling truncation. That cap and the ordering ('most used first') are not in the schema, though the description repeats some enum meaning already documented.

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

Purpose4/5

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

The opening sentence names the concrete resource and metrics: 'The product's usage per UTC day: pageviews, events, visits, visitors and signed-in users.' It is unmistakably a read of daily analytics and the dimension modes are enumerated. It stops short of naming a sibling it is not, so an agent must infer boundaries (e.g. vs get_product_overview or get_users_state) on its own.

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?

Mode selection is spelled out: dimension=product gives one row per day, screen/event without key gives aggregate rows capped at 200, and with key gives that key's history. It also states the prerequisite 'MANAGER+ required' and that no credits are spent. It gives no explicit when-not or named alternative tool for overlapping usage questions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources