Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

audit_log

Read-onlyIdempotent

Retrieve a Discord server's audit log newest first to see who performed bans, kicks, deletions, role, channel, permission changes, and AutoMod blocks; filter by action, user, target, or time.

Instructions

The server audit log, newest first: who did what (bans, kicks, deletes, role/channel/permission changes, AutoMod blocks...). action = name (member_ban_add, message_delete, channel_update, ...) or number; user = who acted; target = id of the affected thing. before/after = entry ids or times.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
userNo
afterNo
guildNo
limitNo
actionNo
beforeNo
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavioral context: results are ordered newest first, and the entries carry actor, action and affected target. It omits permission requirements and rate/retention limits, which keeps it out of 5 territory.

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?

Compact and front-loaded: the resource and its ordering come first, then a field-by-field glossary in "name = meaning" form. The parenthetical ellipsis lists are slightly cryptic but each clause carries real information; nothing is redundant padding.

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?

For an 8-parameter, filter-heavy read tool with no output schema, the definition covers the core filters and paging semantics but leaves the caller guessing about permission prerequisites, the shape of a returned entry, and the interaction between before/after and action filters. Adequate to invoke, not quite complete.

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?

Schema description coverage is 0% across 8 parameters, so the description must carry the load and largely does: action accepts a name (member_ban_add, message_delete, channel_update) or a number, user is the actor, target is the id of the affected entity, and before/after are entry ids or times used for cursor-style paging. Only bot and guild are left unexplained; limit's default of 50 is self-evident from the schema.

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

Purpose4/5

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

"The server audit log, newest first" names a specific resource plus a verb-like retrieval and enumerates the event types covered (bans, kicks, deletes, role/channel/permission changes, AutoMod blocks). An agent can tell this is the audit-trail tool rather than a filtered list like bans_list or automod_rules. It stops short of explicitly naming a sibling it supersedes or complements, so it lands at 4 rather than 5.

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?

Usage is implied by the content list — you come here for "who did what" history rather than current state. However, there is no explicit guidance on when to prefer this over bans_list or automod_rules, nor any prerequisite such as needing the View Audit Log permission, nor what happens if no filters are supplied.

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

Deploy Server

Other Tools