Get audit log
get_audit_logFetch recent audit-log events for an organization or enterprise, optionally filtered by action or actor, to review security-relevant activity.
Instructions
Fetch recent audit-log events for the organization (or the enterprise, when GHE_ENTERPRISE is set), optionally filtered by a search phrase like 'action:repo.destroy' or 'actor:octocat'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org": "<org>"
},
"name": "get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization login (must be within GHE_ORG_ALLOWLIST when that is set) | |
| scope | No | Default org. 'enterprise' requires GHE_ENTERPRISE. | |
| phrase | No | Audit-log search phrase, e.g. action:org.update_member | |
| perPage | No | Events to return (1–100, default 50) |