Skip to main content
Glama

list_user_activity

Shows when each user last asked something in a project, returning per-user activity summaries or a specific user's recent request audit log.

Instructions

Show when each user last asked something in this project.

Without peer_id: returns the per-user summary list — peer_id, first_seen, last_seen, request_count for everyone who has talked in this project. With peer_id: returns that user's full audit log, i.e. the last limit requests as {timestamp, session_id} entries. Requires CONTEXT_BROKER_CONTEXT_BACKEND=redis.

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": "list_user_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
peer_idNo
project_rootNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses two distinct result shapes, the exact per-user summary fields, the audit-log entry shape {timestamp, session_id}, and a hard prerequisite (CONTEXT_BROKER_CONTEXT_BACKEND=redis). It still omits ordering/direction, pagination/truncation behavior, and what happens when the backend is not redis.

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?

Front-loaded with the core purpose, then the two modes in a clear parallel structure, sized appropriately for a tool with two return shapes. The RST double-backtick markup is minor visual noise but nothing is redundant.

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?

An output schema exists, so return-value explanation is not strictly required, and the environment prerequisite is a valuable addition. However, for a 3-parameter tool with 0% schema coverage, leaving project_root undocumented and limit's summary-mode behavior unspecified leaves gaps an agent would hit on first call.

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 0%, so the description must compensate. It explains peer_id well (mode switch) and gives limit meaning ('the last limit requests'), but only within peer mode — limit's effect on the summary list is undefined, and project_root is never mentioned at all.

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 pairs a specific verb ('show') with a specific resource ('when each user last asked something in this project'), and the two-mode breakdown makes the output shape unambiguous. It does not explicitly separate itself from plausible siblings such as lookup_project_history or load_chat_context, so it stops short of a 5.

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 is described conditionally on peer_id ('Without peer_id ... With peer_id ...'), which tells the agent how to pick a mode but never states when to reach for this tool versus the project-history or chat-context siblings. The guidance is implied through the branch description rather than stated as when/when-not rules.

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