Skip to main content
Glama
rspace-os

RSpace MCP Server

Official
by rspace-os

getAuditEvents

Retrieve and monitor audit trails of user actions and document activities in RSpace. Filter events by user, document, or date range to track system access and modifications.

Instructions

Retrieves audit trail of all actions performed in RSpace

Usage: Monitor document access, modifications, and user activity Filtering options:

  • username: Filter by specific user actions

  • global_id: Filter by specific document

  • date_from/date_to: ISO8601 format date range

Returns: Chronological list of system events

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameNo
global_idNo
date_fromNo
date_toNo

Implementation Reference

  • main.py:608-627 (handler)
    The handler function for the 'getAuditEvents' tool. Decorated with @mcp.tool to register it. Calls eln_cli.get_activity to retrieve audit events filtered by username, global_id, date_from, and date_to.
    @mcp.tool(tags={"rspace"}, name="getAuditEvents")
    def activity(
            username: str = None,
            global_id: str = None,
            date_from: str = None,
            date_to: str = None
    ) -> Dict[str, any]:
        """
        Retrieves audit trail of all actions performed in RSpace
        
        Usage: Monitor document access, modifications, and user activity
        Filtering options:
        - username: Filter by specific user actions
        - global_id: Filter by specific document
        - date_from/date_to: ISO8601 format date range
        
        Returns: Chronological list of system events
        """
        resp = eln_cli.get_activity(users=[username], global_id=global_id, date_from=date_from, date_to=date_to)
        return resp
  • main.py:608-608 (registration)
    Registers the 'activity' function as the 'getAuditEvents' tool with rspace tag.
    @mcp.tool(tags={"rspace"}, name="getAuditEvents")
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the tool returns a 'Chronological list of system events', which gives some output context, but lacks critical details like pagination, rate limits, authentication requirements, or whether this is a read-only operation. For a monitoring tool with zero annotation coverage, this leaves significant gaps.

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 efficiently structured with a clear purpose statement, usage context, parameter explanations, and return information in four concise sentences. Every sentence adds value with zero waste. The information is front-loaded with the core purpose first.

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?

Given 4 parameters with 0% schema coverage and no output schema, the description does well explaining parameters and return format. However, as a monitoring tool with no annotations, it should address more behavioral aspects like access permissions, data limits, or system impact. The description is adequate but has clear gaps for this context.

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 description coverage is 0%, so the description must compensate. It successfully explains all four parameters (username, global_id, date_from, date_to) with clear semantic meaning: filtering by user, document, and date range. The date format (ISO8601) is specified. This adds substantial value beyond the bare schema, though it doesn't cover default behaviors or constraints.

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 description clearly states the tool retrieves audit trail data with the verb 'Retrieves' and resource 'audit trail of all actions performed in RSpace'. It distinguishes itself from siblings by focusing on system monitoring rather than document/content operations, though it doesn't explicitly name alternatives. The purpose is specific and actionable.

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?

The description provides implied usage context with 'Monitor document access, modifications, and user activity', suggesting when this tool is appropriate. However, it doesn't explicitly state when to use it versus alternatives or mention any prerequisites or exclusions. The guidance is helpful but incomplete.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rspace-os/rspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server