Skip to main content
Glama
agent-action-gate

agent-action-gate

by dwadlane

Read the audit log

audit_log
Read-onlyIdempotent

Retrieve recent audit entries with personal details redacted and check whether the log's hash chain is intact.

Instructions

Recent audit entries, newest last. Personal details were redacted before they were written. Also reports whether the log's hash chain is intact.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
action_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnly=true, idempotent=true, openWorld=false, so the safety profile is covered. The description does add real value beyond them: entries are ordered newest-last, personal details are already redacted at write time (so an agent should not expect or hunt for PII), and the response includes hash-chain status. It does not say what happens when the chain check fails or how the integrity verdict is shaped.

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?

Three short sentences, front-loaded with the primary payload and followed by the two caveats an agent most needs. No filler, though the terseness leaves no room for the parameter or scoping detail noted above.

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?

There is no output schema, so the description carries the burden of explaining returns; it does so only partially, covering ordering, redaction, and chain status but not the structure of an entry or the integrity verdict. Combined with the unmentioned action_id filter, an agent can call this tool but cannot use it precisely.

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% and neither of the two parameters is mentioned. The meaning of 'limit' is inferable from its default/max, but 'action_id' is completely undocumented — an agent cannot learn from the description that it narrows the log to a single action, which is the tool's main filtering behavior.

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 concrete resource — recent audit entries — plus a second result, hash-chain integrity, which distinguishes it from every sibling (all of which mutate or act on pending actions). It lacks an explicit verb ('read'/'list' only appears in the title), but an agent can still tell what it gets back.

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 statement of when to reach for this tool versus others, nor any exclusion or prerequisite. 'Recent' hints at a recency scope, but the description never says whether it is meant for post-incident review, routine monitoring, or compliance checks, and gives no guidance on paging when the log is large.

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