Skip to main content
Glama
discord-mcp

discord-mcp

automod_create_rule

Create Discord AutoMod rules to filter keywords, block spam, guard against mention raids, or enforce member-profile checks by defining triggers, actions, exemptions, and audit reasons.

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}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "guild_id": "<guild_id>",
      "name": "<name>",
      "event_type": "<event_type>",
      "trigger_type": "<trigger_type>",
      "actions": "<actions>"
    },
    "name": "automod_create_rule"
  }
}

Input 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds nothing about the prerequisites that actually matter for a mutation on a live guild — required permissions, whether rules take effect immediately, or side effects of auto-moderation. The one behavioral detail it gives (the return shape {id, name, trigger_type, enabled}) is already provided by the output schema.

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?

Purpose, when-to-use, and the conditional metadata mapping are front-loaded in a compact, scannable layout with no filler. The trailing 'Returns:' line duplicates the output schema and is the one sentence that does not earn its place.

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?

For a 10-parameter, 5-required tool with a nested trigger_metadata object, the description addresses the hardest selection problem (choosing metadata fields per trigger_type) and an output schema covers return values. Gaps remain around the nested action metadata fields (channel_id, custom_message, duration_seconds) and required permissions, but the core is adequately covered.

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 100%, so the baseline is 3. The description earns above baseline by consolidating which trigger_metadata fields are valid for each trigger_type value in one place, which spares the agent from cross-referencing scattered per-field tags across a 10-parameter nested schema (notably the '3 SPAM → no metadata' case, which is easy to miss).

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 description opens with a specific verb and resource ('Create an AutoMod rule') and immediately scopes it with examples of rule kinds (keyword filter, spam blocker, mention-raid guard). It does not name the sibling it is distinct from (automod_modify_rule), but the create verb makes the operation unambiguous to an agent.

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?

An explicit 'When to use' section with concrete examples gives the agent a clear trigger condition for invoking this tool. It stops short of exclusions or routing guidance (e.g., 'use automod_modify_rule to change an existing rule'), so the agent must infer the boundary with the modify/delete siblings.

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