get_audit_trail
Retrieve recent audit log entries to review guardrail scans, compliance history, or investigate flagged activity. Optionally filter by risk level.
Instructions
Retrieve recent entries from the guardrail audit log.
Use this to review what scans have been performed, check compliance history, or investigate flagged activity.
Args: limit: Maximum number of entries to return (most recent first). risk_level: Optional filter — only return entries matching this risk level ("low", "medium", or "high").
Returns: A list of audit entries, each with id, timestamp, scan_type, source, risk_level, risk_score, reasons, recommendation, and a text preview (never the full scanned text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| risk_level | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |