discord_get_audit_log
Fetch a Discord server's audit log to review administrative actions—bans, kicks, role or channel changes—with executor, target, reason, and timestamp. Requires View Audit Log permission; read-only.
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. Common IDs: 12 = ChannelDelete, 20 = MemberKick, 22 = MemberBanAdd, 23 = MemberBanRemove, 24 = MemberUpdate (nickname, timeout), 25 = MemberRoleUpdate, 32 = RoleDelete, 72 = MessageDelete. Discord's full list has more. Omit for all action types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |