Skip to main content
Glama

fetch_audit_logs

Read-onlyIdempotent

Get audit logs for the user activity in your organisation. Please note that this endpoint can only be accessed by owner and admin role users.

Input Schema

NameRequiredDescriptionDefault
page_sizeNo
date_rangeNo
user_emailNoArray of user emails to filter the activity logs.
page_numberNoPage number of results.
activity_typeNoArray of activity types to filter the audit logs

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / date_range / properties / end_at / description
      Previous value: -"Ending date for audit logs. It's a string in YYYY-MM-DD format."New value: +"Date in yyyy-MM-dd format"
    • addedInput schema / properties / date_range / properties / end_at / format
      Added value: +"date"
    • changedInput schema / properties / date_range / properties / start_at / description
      Previous value: -"Starting date for audit logs. It's a string in YYYY-MM-DD format."New value: +"Date in yyyy-MM-dd format"
    • addedInput schema / properties / date_range / properties / start_at / format
      Added value: +"date"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false), so the description's main job is to add role/auth context — which it does by stating the owner/admin access requirement. It omits practical behavioural detail such as result volume, pagination limits, or whether logs are retained indefinitely, but the auth disclosure is a meaningful addition.

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, zero filler, with the tool's purpose front-loaded before the access caveat. Nothing is repeated from the schema or annotations, and every clause carries information.

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?

The tool returns an output schema, so return-value documentation is not the description's responsibility, and the access prerequisite is stated. What is missing is any hint about pagination interplay (page_size default 100 / max 500 vs page_number) or whether date_range is effectively required in practice, which an agent would need before constructing a sensible first call.

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

Parameters2/5

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

The description adds nothing about any of the five parameters. Schema description coverage is only 60%: page_size has no description at all, and date_range lacks a top-level explanation even though its nested fields are documented. For a filtering tool where the value depends on combining date_range, user_email, and activity_type, this is a real gap.

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?

States a specific verb and resource ('Get audit logs for the user activity in your organisation'), which is unambiguous and clearly distinct from analytics-data siblings. It does not explicitly name an alternative, but no sibling competes for the same job, so differentiation is achieved by the resource noun itself.

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 permission prerequisite ('only owner and admin role users') is a genuine usage constraint that helps an agent decide whether the call is even viable. However, there is no guidance on when to prefer this over related retrieval tools, nor any note on expected call frequency or filtering strategy when a wide date range is used.

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