Skip to main content
Glama

audit

List, filter, and retrieve agent activity log entries, or write a liveness marker to confirm a superuser can still write to the log.

Instructions

agent_audit_log operations (mirrors GET /admin/audit, GET /admin/audit/{id}, POST /admin/audit/verify). action: list (optional entity_type filter, newest first, paged via limit/offset) | get (audit_id) | probe_write (verify is its old, deprecated name).

probe_write WRITES one row and verifies nothing: like the portal's
"verify" button it records a liveness marker
(record_change(entity_type="agent_audit_log", entity_id=<all-zero
uuid>, action="CALLEE_VERIFY")) proving a superuser can still write to
the log. There is no hash chain to walk.

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

Input Schema

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
limitNoRows per page.
actionNoOperation to run: list | get | probe_write | verify. The tool description lists what each action needs.list
offsetNoSkip this many rows first (paging).
audit_idNoagent_audit_log row UUID.
entity_typeNoOnly rows for this table/entity, e.g. agent_profiles.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so: it bluntly states probe_write WRITES a row, that it verifies nothing, the exact marker it inserts (entity_type=agent_audit_log, all-zero UUID, action=CALLEE_VERIFY), and that a superuser is required. The 'no hash chain to walk' note preempts a reasonable but wrong expectation about integrity verification.

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?

Front-loaded action dispatch table followed by the one action that carries risk. The endpoint-mirroring parenthetical is mildly redundant but earns its place as a disambiguator; the probe_write paragraph is long yet every clause is load-bearing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Six optional params behind an action switch, no annotations, and an output schema that covers return values — the description supplies precisely the missing layer: action semantics, paging behavior, and the side effect of the only mutating branch. Nothing an agent needs before calling is absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description adds routing semantics the schema does not: which params belong to which action, that entity_type is an optional filter, and that results are newest-first and paged. The env parameter's staging/prod distinction is left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names the resource (agent_audit_log) and enumerates every operation with its own verb and required argument: list, get (audit_id), and probe_write. It also maps the actions to the underlying REST endpoints, so the agent knows exactly what surface is being multiplexed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Action-to-parameter routing is explicit, and the deprecated `verify` alias is called out with the replacement named. It doesn't compare against sibling tools (the config-CRUD family), but for an action-dispatch tool the internal choosing guidance is the relevant one and it is clear.

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