Skip to main content
Glama

get_audit_log

Retrieve audit log entries from PolicyGuard to monitor compliance, investigate policy violations, and track administrative actions with customizable filters.

Instructions

Retrieve audit log entries for compliance and investigation.

The audit log records all action validations, policy violations, and administrative actions performed through Guardian Agent.

Args: agent_id: Filter by specific agent ID (optional) action_type: Filter by action type like "tool_call", "resource_access" (optional) time_range: Time range to query - "1h", "24h", "7d", "30d" (default: "24h") status: Filter by status - "allowed", "denied", or "" for all (optional) limit: Maximum number of entries to return (default: 100)

Returns: JSON string with: - entries: Array of audit log entries - count: Number of entries returned - total: Total entries matching filter (before limit) - time_range: The time range used - filters_applied: Summary of filters used

Example: # Get all denied actions in the last hour get_audit_log(time_range="1h", status="denied")

# Get all actions by a specific agent get_audit_log(agent_id="prod-agent-01", time_range="7d")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNo
action_typeNo
time_rangeNo24h
statusNo
limitNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PrateekKumar1709/policyguard'

If you have feedback or need assistance with the MCP directory API, please join our Discord server