Skip to main content
Glama
cappyeo

discord-mcp

audit_log_get

Read-onlyIdempotent

Fetch audit log entries from a Discord guild to trace moderation actions such as kicks or bans. Filter by user or action type for targeted incident forensics.

Instructions

Purpose: Fetch audit log entries for a guild.

When to use: investigate "who kicked X?", post-incident forensics.

Example: {guild_id:"999000999000999000", limit:50, action_type:20} (action_type 20 = MEMBER_KICK)

Returns: {entries:[{id, target_id, user_id, action_type, reason}], count}. Structured reason values remain raw moderator-controlled data; the human-readable text response fences them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax entries (1-100, default 50)
user_idNoFilter to entries triggered by this user
guild_idYesGuild to query
action_typeNoFilter by Discord audit action type

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive. The description adds a behavioral caveat about 'reason' values being raw moderator-controlled data and fenced in human-readable text, which is valuable beyond the schema.

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

Conciseness5/5

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

The description uses labeled sections (Purpose, When to use, Example, Returns) with no fluff. Each section earns its place and is front-loaded with the purpose.

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

Completeness5/5

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

The description covers what the tool does, when to use it, an example, return shape, and a data-safety caveat. With an output schema present and read-only annotations, nothing significant is missing.

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

Parameters4/5

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

Input schema covers 100% of parameters. The description adds a concrete example mapping action_type 20 to MEMBER_KICK and shows usage of guild_id and limit, which enriches the bare schema definitions.

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 opens with 'Fetch audit log entries for a guild,' using a specific verb and resource. It clearly distinguishes this from sibling tools by focusing on audit logs and mentions the guild context.

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

Usage Guidelines4/5

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

The 'When to use' section explicitly frames this for investigating moderation actions like 'who kicked X?' and post-incident forensics. It provides clear context but does not mention alternatives or exclusions, so a 4 is appropriate.

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

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