Skip to main content
Glama

query_audit

Retrieve audit log entries with filters for time range, secret, and outcome plus pagination to review access activity and investigate incidents.

Instructions

Query audit log entries with filtering and pagination

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (starts at 1)
endTimeNoEnd time for filtering (ISO 8601 format)
outcomeNoFilter by outcome
pageSizeNoNumber of entries per page (max 500)
secretIdNoFilter by secret identifier
startTimeNoStart time for filtering (ISO 8601 format)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full behavioral burden. It does not state that this is a read-only operation, whether any permissions or authorization are required to read audit logs, or whether results have retention limits. For a log-query tool with zero annotation coverage, this leaves important behavior undisclosed.

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?

One short sentence, front-loaded with the verb and resource and free of filler. It is efficient, though its brevity is partly the reason other dimensions are thin.

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?

With no output schema, the description should say something about the returned shape (e.g., log entry fields, ordering, pagination metadata), and it does not. Schema coverage is complete for inputs, but the result-side and safety-side context are missing for a 6-parameter tool.

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 100%, so all six parameters (page, pageSize, startTime, endTime, outcome, secretId) are already documented in the schema. The description adds no syntax, default, or interaction details beyond that baseline.

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 names a specific verb and resource ('Query audit log entries') and adds scope ('with filtering and pagination'), so the operation is immediately identifiable. It does not explicitly contrast with siblings like describe_policy or use_secret, but those names clearly belong to different domains, so the gap is minor.

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?

There is no explicit guidance on when to use this tool versus alternatives, no preconditions, and no exclusions. The only signal is the implied read-only nature of 'query,' which is left to inference.

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