Skip to main content
Glama
discord-mcp

discord-mcp

by wjrosa

automod_rule_set

Create, update, or delete Discord AutoMod rules from JSON to block content, send alerts, time out members, or restrict interactions. Provide rule_id to modify or delete an existing rule.

Instructions

Create (no rule_id), update (rule_id) or delete an AutoMod rule with Discord's rule JSON, e.g. {"name": "No invites", "event_type": 1, "trigger_type": 1, "trigger_metadata": {"regex_patterns": ["discord.gg/"]}, "actions": [{"type": 1}], "enabled": true}. Action types: 1 block, 2 alert to {"channel_id"}, 3 timeout {"duration_seconds"}, 4 block member interactions.

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": {
      "rule": "<rule>"
    },
    "name": "automod_rule_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
botNo
ruleYes
guildNo
deleteNo
reasonNo
rule_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations only say readOnly=false, destructive=false, idempotent=false, openWorld=true, so the description carries the burden for a multi-mode mutation tool. It discloses that rules can be deleted but says nothing about permission requirements, whether partial updates merge or replace existing rule fields, or what happens to a rule removed by the delete path — a notable gap given destructive behaviour lives in this tool.

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?

Mode selection is front-loaded in the first line and the remaining sentences are dense, load-bearing reference material (JSON example, action-type table). The inline example is long but earns its space given zero schema coverage; only the delete/rule_id ambiguity reads as sloppy rather than verbose.

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 a six-parameter, nested-object mutation tool with no output schema and no annotation detail, the description covers the rule payload well but leaves the surrounding parameters, the delete semantics, and permission requirements unexplained. An agent could construct a rule but not confidently handle the delete path or know what the call returns.

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 0% for six parameters including a free-form nested 'rule' object, so the description must compensate. It does well on the hardest parameter by giving a full JSON example and decoding the action types (1 block, 2 alert with channel_id, 3 timeout with duration_seconds, 4 block interactions), but bot, guild, reason and delete are left entirely undocumented.

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 set and resource: create/update/delete of an AutoMod rule, and spells out the discriminator (rule_id present = update, absent = create). It never names the sibling automod_rules (list) as the read-only alternative, so an agent must infer that distinction from the tool names alone.

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?

It gives mode-selection guidance tied to rule_id, which is useful, but it is silent on when to prefer automod_rules for inspection and on prerequisites (Manage Guild / AutoMod permissions). It also creates confusion by describing deletion as driven by rule_id while the schema exposes a separate boolean 'delete' parameter with unspecified precedence.

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