Skip to main content
Glama
OrygnsCode

Omnicord - Discord server management MCP for AI agents

Create AutoMod rule

create_automod_rule

Filter profanity, slurs, spam, and mention floods with Discord server-side rules. Use presets, custom keywords, or regex; choose block, alert, or timeout.

Instructions

Create a server-side moderation rule that runs on Discord's own infrastructure: Discord-maintained preset word lists (slurs, profanity, sexual content), custom keyword filters (with optional regex), spam detection, mention-flood limits, or member_profile checks on usernames, nicknames, and bios (Community servers only). For slur or hate-speech filtering prefer trigger keyword_preset with the slurs preset: Discord maintains the word list, so none needs to be written. Actions: block the message, alert a channel, and/or time the sender out (timeout is not available on spam, keyword_preset, or member_profile rules). On member_profile rules block quarantines the member until they fix their profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
guildNoGuild (server) name or ID. Omit to use the default guild.
actionsYesWhat happens on a match.
enabledNoDefault true.
presetsNoFor keyword_preset rules: Discord-maintained lists.
triggerYes
keywordsNoFor keyword rules. Wildcards: word* matches prefixes.
allow_listNoWords exempt from keyword and keyword_preset rules.
exempt_rolesNo
alert_channelNoWhere alert actions post.
mention_limitNoFor mention_spam rules: max unique mentions per message.
regex_patternsNoFor keyword rules; Rust-flavored regex.
exempt_channelsNo
timeout_minutesNoHow long timeout actions last.
Behavior4/5

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

The description discloses that rules run on Discord's infrastructure, explains action limitations (timeout unavailable on spam/keyword_preset/member_profile), and clarifies that blocking on member_profile quarantines the member. Since annotations only indicate readOnlyHint=false and destructiveHint=false, the description carries the burden and does so well.

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 long but information-dense, covering multiple trigger types, actions, and constraints without repeating the schema verbatim. It is structured with clear sentences and semicolons, earning its length for a tool with 14 parameters.

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?

Given the tool's complexity (14 params, no output schema), the description covers operational context, trigger categories, action options, and usage preferences. It does not mention return values, but this is a minor gap for a creation tool where the outcome is implied.

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?

The description adds semantic value beyond the schema by explaining why presets are useful ('Discord maintains the word list, so none needs to be written') and detailing how actions behave across trigger types. With 71% schema coverage, the description fills gaps and deepens understanding of parameter interactions.

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 creates a server-side moderation rule, enumerates all trigger types (keyword, keyword_preset, spam, mention_spam, member_profile), and distinguishes it from sibling tools like update_automod_rule and delete_automod_rule by focusing on creation.

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?

Provides explicit guidance: 'For slur or hate-speech filtering prefer trigger keyword_preset with the slurs preset' and notes that member_profile is for Community servers only. Also gives important constraints like timeout not being available on certain triggers, though it doesn't explicitly contrast with updating/deleting rules.

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/OrygnsCode/Omnicord'

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