Skip to main content
Glama

haldir_query_audit_trail

Query the tamper-evident audit trail to review agent activity; filter results by agent ID, session ID, tool, or flagged status.

Instructions

Query the audit trail. Filter by agent_id, session_id, tool, flagged.

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

Input Schema

NameRequiredDescriptionDefault
toolNo
limitNo
flaggedNo
agent_idNo
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden and does not meet it: nothing says this is a read-only operation, whether results are ordered or paginated, what the limit parameter bounds, or whether the call has any side effects. Only the bare query intent is communicated.

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?

Two short sentences, front-loaded with the core action and followed by the filter set; there is no filler. The brevity is efficient, though the terseness is part of why 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?

For a five-parameter query tool with no annotations, no output schema, and 0% schema coverage, the description is underpowered — it should at minimum cover limit/ordering behavior and the read-only nature. It is not wholly inadequate because the core purpose and filter set are stated.

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?

Schema description coverage is 0% across five parameters, and the description merely echoes four of the parameter names without adding meaning — no format hints for agent_id/session_id, no semantics for tool matching, and no mention of the limit parameter or its default of 50. The one unnamed parameter is left entirely undocumented in both places.

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 gives a specific verb and resource ("Query the audit trail") and lists the filterable dimensions, which distinguishes it reasonably well from the write-side sibling haldir_log_audit_action. It falls short of 5 because it never explicitly names a sibling or states what makes this query different from the proof/verify tools.

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?

The second sentence enumerates filter fields but gives no guidance on when to run this query, what a caller should expect when no filters are supplied, or which alternative tool to use for related needs (e.g. chain verification or action logging). Usage is only implied by the word "Filter".

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