get_audit_log
List organization audit-log entries for mutating and authentication events, newest first, to review security and account activity. Results are limited to plan retention and require an org key.
Instructions
List audit-log entries for the calling org — mutating operations and auth-lifecycle events, newest first. Results are clamped to the plan's retention window. Requires an Organization key (chr_sk_*); Agent keys cannot read the org-wide audit log.
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": "get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the window (ISO 8601) | |
| from | No | Start of the window (ISO 8601). Silently clamped to the plan retention window if older. | |
| limit | No | Max results to return (default 50) | |
| action | No | Filter by action name (e.g. event.create, agent_key.revoke). Legacy names are matched by their current names. | |
| cursor | No | Opaque pagination cursor from a previous response | |
| actor_id | No | Filter by actor id (an API key id, the org id for console sessions, or the connection id for oauth_app) | |
| category | No | Filter by action category (e.g. keys, calendars, billing, security) | |
| resource | No | Filter by an entity id or id prefix the request touched (e.g. cal_abc123 or cal_) | |
| actor_type | No | Filter by who acted: session (console), org_key, agent_key, oauth_app (an app connected by signing in) or system | |
| request_id | No | Filter by request id (the X-Request-Id of the original call) | |
| status_class | No | Filter by response status class: 2xx, 3xx, 4xx or 5xx | |
| actor_key_prefix | No | Filter by the API key prefix that performed the action |