Skip to main content
Glama

Read user activity log

get_user_activity_log
Read-onlyIdempotent

Return the activity log of the users of this NET Genium instance in a period — every load of an edit form or a view page on the server (opening, submitting, saving and ajax actions), as the database logging records it in the tables stables_stats and sviewpages_stats. For every user and day it returns the time of the first and the last load, the numbers of loads of edit forms and view pages (of them submits and actions), blocks of continuous activity (loads separated by at most gap_minutes) and the most frequent edit forms and view pages; with detail = true also the chronological list of loads. The log does not record reading an already open page without a click, work outside NET Genium or requests of other pages (attachments, printing, portlets of the home page), so an empty day only means that nothing was loaded. The period is at most 31 days.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "get_user_activity_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe last day of the period in the form yyyy-MM-dd (inclusive).
fromYesThe first day of the period in the form yyyy-MM-dd.
userNoOptional login name of the user (loginname). Omit to get every user with a record in the log.
detailNotrue = return also the chronological list of loads by days. Default false.
gap_minutesNoThe gap in minutes that separates blocks of activity, 5–240. Default 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (which already declare this a read-only, idempotent, non-destructive closed-world read), the description discloses what is and isn't captured – no already-open page reads, no work outside NET Genium, no attachments/printing/home-page portlets – so an empty day can be interpreted correctly. It also states the 31-day hard limit, a real behavioral constraint not present in the annotations.

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

Conciseness4/5

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

Purpose and data source are front-loaded, and every clause carries information about scope, limits, or return shape. It is still one dense run-on sentence packed with semicolons and parentheticals, which makes it harder to scan than it needs to be.

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 fully describes the return payload (first/last load times, edit-form and view-page counts including submits and actions, activity blocks, most frequent forms/pages, plus optional chronological list). Combined with the stated coverage limits and period cap, an agent has everything needed to call and interpret it.

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 baseline is 3, but the description adds meaning: it defines gap_minutes operationally ('loads separated by at most gap_minutes'), clarifies detail=true yields the chronological list of loads, and explains that each user/day row aggregates first/last load, load counts, activity blocks, and top forms/pages.

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 opens with a specific verb+resource ('Return the activity log of the users of this NET Genium instance in a period') and then pins down the exact data source (stables_stats and sviewpages_stats). That scope is distinct enough from generic siblings like get_log and list_logs that an agent can pick it without opening the schemas.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: an agent learns it should be used for per-user/per-day server-side UI activity, and the 'period is at most 31 days' and 'empty day only means nothing was loaded' notes help interpretation. However, the description never says when to prefer this over the sibling logs (get_log, list_logs) or names any alternative.

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