Skip to main content
Glama

read_audit

Retrieve recent audit events and verify whether the audit log's hash chain is intact. Each access is itself recorded, so auditors can confirm tamper-evident activity.

Instructions

Auditor role only: the most recent audit events (newest last) and whether the audit log's hash chain is intact. Reading the log is itself audited.

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

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault
eventsNo
messageNo
outcomeYes
reason_codeNo
chain_intactNo
total_eventsNo
audit_event_idNo
chain_broken_at_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the authorization requirement (auditor role), the ordering of results (newest last), and a non-obvious side effect — that reading the log is itself audited. It is silent on pagination behavior and on what happens when the chain is broken, which keeps it short of a 5.

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 access gate, then the payload, then the side effect. No filler and nothing that could be cut without losing 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?

An output schema exists, so return-value details need not be restated. The description covers access control, ordering, integrity reporting, and the audit-of-reads behavior; only the limit semantics and failure/broken-chain behavior are left implicit.

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?

The single parameter (limit, default 20) has 0% schema description coverage, so the description must compensate. 'Most recent audit events (newest last)' implies the limit selects the newest N, but it never states the cap, whether the limit interacts with ordering, or a maximum value.

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 resource (audit events) plus the additional return of hash-chain integrity status, so the agent knows exactly what comes back. It does not explicitly contrast with siblings, but the sibling set (metrics/health/ask) is far enough away that disambiguation is not critical.

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?

'Auditor role only' is a real usage precondition that will stop unauthorized or unprivileged calls. Beyond that gate, there is no guidance on when to prefer this over other read tools or when it should not be called (e.g., during an incident, or if chain verification is expensive).

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