discord_get_audit_log
Retrieve a Discord server's audit log to see administrative actions like bans, kicks, and role changes, including who performed them and when. Filter entries by action type.
Instructions
Fetch the server's audit log, the record of administrative actions (bans, kicks, role/channel changes, etc.) with who performed them and when. Requires the View Audit Log permission. Returns { entries: [...] } with id, action, executor, target, reason, createdAt. Read-only.
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": {
"guild_id": "<guild_id>"
},
"name": "discord_get_audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent entries to fetch (1–100). Default 25. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| action_type | No | Optional Discord AuditLogEvent numeric ID to filter by (e.g. 22 = MemberBanAdd). Accepts event IDs newer than the bundled enum. Omit for all action types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |