Skip to main content
Glama

List ai audit logs

list_ai_audit_logs
Read-only

List the audit trail of every AI tool call the Policy Engine has seen (allowed, denied, require_approval, error).

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_ai_audit_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax rows (default 100).
statusNo
tool_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that the log covers all decisions including denied and error cases, which is genuinely useful context, but says nothing about ordering, pagination behavior, or whether entries are retained/immutable.

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?

A single front-loaded sentence with no filler. The parenthetical of statuses is mildly redundant with the schema enum but still helps an agent grasp the scope quickly.

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?

For a simple read-only list tool with no output schema, the definition covers identity and scope but leaves gaps an agent needs: result ordering, whether the list is truncated at the default limit, and the exact semantics of the tool_name filter.

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 only 33%: only 'limit' has a description. The description repeats the four status values already enumerated in the schema but adds no meaning for 'tool_name' (exact match? substring?) or default ordering. It does not compensate for the coverage 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 ('List the audit trail of every AI tool call') and scopes it to what the Policy Engine has seen, including the decision outcomes recorded. It is clear enough to separate from memory/approval management siblings, though it does not explicitly name the nearest alternative (e.g. list_ai_action_approvals).

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 only implied by the resource name — an audit/inspection read. The description gives no explicit when-to-use versus when-not, no guidance on using status filters to find denials or errors, and no mention of alternatives for per-action approval queries.

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