Skip to main content
Glama

Get audit log statistics

get_audit_log_stats
Read-onlyIdempotent

Summarize audit log events for a time range, 30 days by default: counts by category, status, and retention, plus recent activity. Needs a workspace owner or admin on an Enterprise plan.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoStart of the window: epoch milliseconds or an ISO 8601 time.
untilNoEnd of the window: epoch milliseconds or an ISO 8601 time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/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), so the description's added value is the authorization gate (owner/admin on Enterprise) and the default 30-day window. Those are exactly the kind of preconditions that would otherwise cause a failed call, though rate limits and result-size behavior are unstated.

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?

Two sentences, front-loaded with the action and scope, then the access precondition. Every clause carries information an agent needs; nothing is redundant with the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 usefully sketches the returned aggregates and covers defaults and permissions. Minor gaps remain around whether 'recent activity' is bounded or how large windows are handled, but nothing essential for a correct call is absent.

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 the baseline would be 3; the description earns above that by disclosing the default window when since/until are omitted, which the schema does not express. It adds no further detail on accepted time formats, but the schema already documents epoch milliseconds and ISO 8601.

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 gives a specific verb ('summarize') and resource ('audit log events') and enumerates the output shape (counts by category, status, retention, plus recent activity). That is enough to distinguish it from aggregation-adjacent siblings like export_audit_logs or verify_audit_log_chain, though no sibling is named explicitly.

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 states the operating context clearly: defaults to a 30-day window and requires a workspace owner or admin on an Enterprise plan. What is missing is an explicit pointer to alternatives (e.g., use export_audit_logs for raw events) or a when-not condition.

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