Skip to main content
Glama

query_audit_log

Read-only

Query the MCP agent activity audit log for this workspace. Supports filtering by tool name, status, and date range.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd of date range (ISO 8601, e.g. "2025-12-31T23:59:59Z")
fromNoStart of date range (ISO 8601, e.g. "2025-01-01T00:00:00Z")
toolNoFilter by tool name (e.g. "create_page", "query_database")
limitNoMaximum results (default 50)
statusNoFilter by call status

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
entriesYesNewest first

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedOutput schema / properties / entries / description
      Previous value: -"Audit log entries, newest first"New value: +"Newest first"
    • removedOutput schema / properties / entries / items / properties / agentName / description
      Removed value: -"Agent brand id"
    • removedOutput schema / properties / entries / items / properties / createdAt / description
      Removed value: -"When the call happened"
    • removedOutput schema / properties / entries / items / properties / id / description
      Removed value: -"Activity row ID"
    • changedOutput schema / properties / entries / items / properties / status / description
      Previous value: -"Call status (success | error)"New value: +"success | error"
    • removedOutput schema / properties / entries / items / properties / targetId / description
      Removed value: -"Target resource ID"
    • removedOutput schema / properties / entries / items / properties / targetType / description
      Removed value: -"Target resource type"
    • removedOutput schema / properties / entries / items / properties / tokenName / description
      Removed value: -"Token label"
    • removedOutput schema / properties / entries / items / properties / tool / description
      Removed value: -"Tool that was called"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, indicating a safe read operation. The description adds that it supports filtering but does not disclose further behavioral traits such as pagination, rate limits, or what happens when no results are found. With annotations covering the safety profile, the description provides moderate additional value.

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 a single sentence that is front-loaded with the core action and immediately lists filter capabilities. Every word adds value; no fluff.

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 required. However, the description omits details like log retention period, ordering defaults, or maximum date range. For a tool with 5 optional parameters and no required fields, additional context would improve completeness.

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 coverage is 100%, with all 5 parameters already described in the input schema. The description adds a summary of filter categories (tool name, status, date range) but does not provide meaning beyond what the schema already offers. Baseline 3 is appropriate given high coverage.

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 clearly states it queries the MCP agent activity audit log for this workspace, specifying filtering by tool name, status, and date range. This is a specific verb+resource combination that distinguishes it from sibling tools like query_database or search_workspace.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. Sibling tools include get_changes_since and query_database, which could be confused without explicit differentiation. The description does not mention when not to use it or list alternative tools.

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.