Skip to main content
Glama

db_audit_log

Retrieve the security and compliance audit trail for database queries, including blocked operations, risk scores, and PII redactions.

Instructions

Retrieve the security and compliance query audit trail, including blocked operations, risk scores, and PII redactions.

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of entries to retrieve (default: 20).
statusNoFilter by status: SUCCESS, BLOCKED, DRY_RUN_APPROVED, DRY_RUN_REJECTED, COMMITTED, ERROR.
minRiskScoreNoFilter for queries with riskScore >= minRiskScore.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; "Retrieve" implies a read-only operation, and it usefully discloses what the records contain (risk scores, PII redactions, blocked operations). It says nothing about ordering, retention window, pagination beyond the limit parameter, or required permissions, which are meaningful gaps for an audit tool.

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?

A single front-loaded sentence with zero filler; the resource and its contents come first with no redundant restatement of the tool name. Nothing could be removed without losing information.

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 three-optional-parameter read tool the description is serviceable, and the absence of an output schema is partly offset by enumerating the returned fields. However, with no annotations to declare its read-only safety profile, the definition leaves the agent without confirmation of side effects, ordering, or result volume.

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 the schema already documents limit, status, and minRiskScore semantics including the status enum values. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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 pairs a specific verb ("Retrieve") with a specific resource ("security and compliance query audit trail") and enumerates what it contains: blocked operations, risk scores, and PII redactions. That makes it clearly distinguishable from execution-oriented siblings like db_query or db_commit, though it does not explicitly name a sibling to disambiguate against.

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?

The compliance/security framing implies when an agent would reach for this tool (auditing blocked or risky queries), but there is no explicit when-to-use or when-not-to-use statement, and no guidance versus alternatives such as db_query or db_status. Usage must be inferred from the resource name.

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