Skip to main content
Glama
Oratorian

Discord MCP Server

by Oratorian

Get Audit Log

discord_get_audit_log
Read-onlyIdempotent

Retrieves Discord audit log entries for a server, showing actions like member kicks, role changes, and message deletions with filters by user or action type.

Instructions

Get the audit log for a server. Shows who did what actions.

Common action types: 1=GuildUpdate, 10=ChannelCreate, 11=ChannelUpdate, 12=ChannelDelete, 20=MemberKick, 22=MemberBanAdd, 23=MemberBanRemove, 24=MemberUpdate, 25=MemberRoleUpdate, 30=RoleCreate, 31=RoleUpdate, 32=RoleDelete, 72=MessageDelete, 73=MessageBulkDelete

Args:

  • guild_id (string): Discord server/guild ID

  • user_id (string, optional): Filter by user who performed action

  • action_type (number, optional): Filter by action type

  • limit (number): Number of entries (1-100, default 20)

  • response_format ('json' | 'markdown'): Output format

Returns: Audit log entries with action, user, target, and changes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of entries to retrieve
user_idNoFilter by user who performed actions
guild_idYesDiscord server/guild ID (snowflake)
action_typeNoFilter by action type (Discord audit log action type number)
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datajson
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate read-only, idempotent, non-destructive behavior. The description adds a list of common action types and general content, but does not disclose additional behavioral traits like data freshness, rate limits, or permission requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and front-loaded with purpose. The list of action types is useful but somewhat lengthy; a summary or reference could improve conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description partially covers return data (action, user, target, changes) but omits pagination, permissions, and rate limit context. Annotations help but more detail would be beneficial.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all parameters with descriptions (coverage 100%). The description adds value by listing common action type codes, but there is a contradiction: description says limit default is 20, while schema says 50. This inconsistency reduces clarity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves audit logs for a server with the verb 'Get' and resource 'audit log'. It uniquely identifies this functionality among siblings, as no other sibling tool focuses on audit logs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for viewing audit logs but lacks explicit guidance on when to use this tool versus alternatives, such as when to filter by user/action or how it differs from other log retrieval methods.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/Oratorian/discord-node-mcp'

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