Skip to main content
Glama
cappyeo

discord-mcp

automod_create_rule

Create a Discord AutoMod rule to filter keywords, block spam, or stop mention raids. Set triggers, actions, and exemptions.

Instructions

Purpose: Create an AutoMod rule.

When to use:

  • Add a keyword filter, spam blocker, mention-raid guard, etc.

trigger_metadata is conditional on trigger_type:

  • 1 KEYWORD → keyword_filter, regex_patterns, allow_list

  • 3 SPAM → no metadata

  • 4 KEYWORD_PRESET → presets, allow_list

  • 5 MENTION_SPAM → mention_total_limit, mention_raid_protection_enabled

  • 6 MEMBER_PROFILE → keyword_filter, regex_patterns, allow_list

Returns: {id, name, trigger_type, enabled}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRule name
actionsYesActions to take when the rule fires
enabledNoWhether the rule is active (default true)
guild_idYesTarget guild
event_typeYesAutoMod event type (1 MESSAGE_SEND, 2 MEMBER_UPDATE)
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
exempt_rolesNoRoles exempt from this rule (max 20)
trigger_typeYesAutoMod trigger type (1 KEYWORD, 3 SPAM, 4 KEYWORD_PRESET, 5 MENTION_SPAM, 6 MEMBER_PROFILE)
exempt_channelsNoChannels exempt from this rule (max 50)
trigger_metadataNoAutoMod trigger metadata (fields valid per trigger_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 denote a non-read-only mutation and non-destructive behavior. The description adds valuable behavioral context by detailing the conditional dependency of trigger_metadata on trigger_type (e.g., '1 KEYWORD → keyword_filter, regex_patterns, allow_list') and specifying the return shape. This goes beyond the annotations without contradicting them.

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 is well-structured with bold headers, bullet points, and a clear returns line. It is concise—every sentence provides necessary information without repetition or fluff. The conditional mapping is presented compactly and is easy to scan.

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?

For a tool with 10 parameters, nested objects, and complex conditional logic, the description covers purpose, usage, conditional metadata, and return value. It is complemented by full schema documentation, making it comprehensive. No critical missing context (e.g., permissions, errors) is apparent for the agent to invoke it correctly.

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 coverage is 100%, so the baseline is 3. The description adds extra value by mapping each trigger_type to the applicable trigger_metadata fields, which is not explicitly enumerated in the schema comments. This helps the agent decide which combinations to use, exceeding the bare schema descriptions.

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 'Purpose: Create an AutoMod rule', which is a clear verb+resource statement. It distinguishes this tool from siblings like automod_modify_rule, automod_get_rule, automod_delete_rule, and automod_list_rules by explicitly 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?

The 'When to use' section provides concrete examples (keyword filter, spam blocker, mention-raid guard) indicating the tool's intended scenarios. However, it does not explicitly mention alternatives or when not to use, but the context of sibling tool names offers enough differentiation.

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