Skip to main content
Glama

Analyze User Activity

analyze_user_activity
Read-onlyIdempotent

Rent Manager user login activity and concurrent-user counts (UserLog, 3).

Use for questions like:

  • "How many users were logged in at one time yesterday?"

  • "What's our peak concurrent user count this week / last week?"

  • "How many people logged into Rent Manager on Monday?"

  • "Show me failed login attempts"

Returns total sessions, distinct users, failed login attempts, the PEAK number of users logged in simultaneously (with timestamp), and either a per-day peak table (multi-day range) or an hourly concurrency profile (single-day range). Org-wide by nature — there is no property scope.

Caveat for ranges that include today: RM records a session only at LOGOUT, so users currently logged in are not in the log yet — today's recent hours UNDERSTATE true concurrency. Completed (past) days are accurate.

Args: start_date: MM/DD/YYYY. Defaults to 6 days ago (a 7-day window). end_date: MM/DD/YYYY. Defaults to today.

``location`` (optional): a Rent Manager Location ID, a comma-separated
list, or ``"all"`` to run across every Location on this connection (see
``list_locations``). Blank = all Locations if the connection has several,
else its only Location. Output is labelled per Location; a Location that
can't be reached is listed as skipped. IDs (property, tenant, ...) belong
to one Location, so pass that Location when you filter by one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_user_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateNo
locationNo
start_dateNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / location
      Added value: +{
      +  "default": "",
      +  "title": "Location",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description adds genuinely new behavioral facts: sessions are recorded only at LOGOUT so today's hours understate concurrency, results are org-wide with no property scope, and unreachable Locations are reported as skipped. That caveat is exactly the kind of trap an agent would otherwise misreport.

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?

Well front-loaded: one-line purpose, then usage examples, then return shape, then the important caveat, then args. It is on the long side and the four example questions are partly redundant, but they function as retrieval hooks and no section is filler.

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?

Covers purpose, trigger questions, return shape (despite an output schema existing), the today-range accuracy caveat, and full parameter semantics for a 3-param zero-coverage schema. Nothing an agent needs to call this correctly or interpret results is missing.

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

Parameters5/5

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

Schema coverage is 0%, so the description carries the full burden and does: MM/DD/YYYY formats, concrete defaults for both dates (6 days ago / today), and rich semantics for `location` (single ID, comma list, "all", blank fallback, per-Location labelling, skipped Locations). The schema alone would leave all three parameters opaque.

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?

States a specific resource and scope: 'Rent Manager user login activity and concurrent-user counts (UserLog, 3).' This immediately distinguishes it from the many financial/operational analyze_* siblings, none of which concern login or concurrency data.

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?

Four concrete example questions define the intended question space clearly, and the location paragraph explains when to pass a Location ID (when filtering by an ID that belongs to one Location) and what blank means. It stops short of naming an alternative tool to use for adjacent questions, so no explicit 'when not to use' or sibling routing.

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