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.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: peak concurrency includes a timestamp, results are per-day for multi-day ranges or hourly for single-day ranges, locations may be skipped, and sessions are only recorded at logout. The caveat about today's data understating true concurrency is especially valuable context an agent could not infer from annotations.

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 front-loaded with purpose and usage examples, then returns, caveats, and args. Despite its length, every section adds useful information for correctly invoking a tool with non-obvious concurrency and location behavior.

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?

The tool has an output schema, but the description still usefully explains output semantics such as per-day versus hourly profiles and peak timestamps. Combined with defaults, location handling, and the today-data caveat, the definition provides everything needed to call and interpret the tool correctly.

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 description coverage is 0%, so the description must carry the parameter semantics, and it does: start_date and end_date include format and defaults, while location explains optional IDs, comma-separated lists, 'all', blank behavior, and multi-location labeling. This fully compensates for the empty schema descriptions.

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 states a specific verb and resource: Rent Manager user login activity and concurrent-user counts, including the source (UserLog). It is clearly distinguishable from the many sibling analyze_* tools, which focus on financial, occupancy, leasing, and property metrics rather than user login activity.

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?

It gives concrete example questions that clearly indicate when to use the tool, such as peak concurrency and failed login attempts. It also notes that the analysis is org-wide with no property scope, but it does not explicitly name alternative tools or describe when not to use this one.

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