Skip to main content
Glama
Oratorian

Discord MCP Server

by Oratorian

Create Auto Moderation Rule

discord_create_automod_rule

Create auto moderation rules for Discord servers to automatically filter keywords, spam, mentions, or preset content and take actions like blocking messages, sending alerts, or timing out users.

Instructions

Create a new auto moderation rule for a server.

Args:

  • guild_id (string): Discord server/guild ID

  • name (string): Rule name

  • event_type ('message_send'): Event that triggers the rule

  • trigger_type ('keyword' | 'spam' | 'keyword_preset' | 'mention_spam'): Trigger type

  • trigger_metadata (object, optional): Trigger configuration (keyword_filter, presets, etc.)

  • actions (array): Actions to take (block_message, send_alert_message, timeout)

  • enabled (boolean): Whether rule is enabled (default: true)

  • exempt_roles (array, optional): Role IDs exempt from this rule

  • exempt_channels (array, optional): Channel IDs exempt from this rule

Returns: Created rule details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRule name
actionsYesActions to take when rule is triggered
enabledNoWhether the rule is enabled
guild_idYesDiscord server/guild ID (snowflake)
event_typeYesEvent type that triggers the rule
exempt_rolesNoRoles exempt from this rule
trigger_typeYesType of content that triggers the rule
exempt_channelsNoChannels exempt from this rule
trigger_metadataNoTrigger configuration
Behavior3/5

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

Description aligns with annotations (non-read-only, non-destructive). It notes return details but lacks permissions, side effects, or error conditions. Annotations supply behavioral safety hints.

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?

Well-structured with headings, Arg list, and Returns. Mostly concise, though the Arg list partially duplicates schema. First sentence is clear and front-loaded.

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

Completeness4/5

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

Covers all inputs, but lacks output schema for return value structure and missing prerequisites like required permissions. Reasonably complete given complexity, but could be improved.

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 description coverage is 100%, so the schema already explains parameters. The description rephrases minimal context but adds little beyond defaults or optionality already in schema.

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 verb 'Create' clearly states the action, and 'automod rule' specifies the resource. It distinguishes from sibling tools like discord_edit_automod_rule, discord_delete_automod_rule, etc.

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?

No explicit guidance on when to use vs alternatives (e.g., editing or listing rules). Usage is implied by the tool name and description, but no direct comparison.

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