Skip to main content
Glama
discord-mcp

discord-mcp

discord_intent_plan

Read-onlyIdempotent

Turn explicit Discord intents such as lock_channel, announce, verify, or lock_and_announce into a read-only deterministic plan with target steps, access requirements, warnings, and a SHA-256 digest.

Instructions

Purpose: Normalize a small, explicit Discord outcome into a deterministic, reviewable plan.

Supported intents: lock_channel, announce, verify, and lock_and_announce (natural-language separators and the bounded Vietnamese aliases khóa kênh, thông báo, xác minh are accepted).

Safety: This tool is strictly read-only. Its planner performs no Discord REST call, grants no approval, and never executes the returned steps; normal server scope middleware may perform a read-only target lookup.

Returns: A target-bound step list, aggregated access requirements, warnings, and a stable SHA-256 plan digest.

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": {
      "intent": "<intent>",
      "guild_id": "<guild_id>",
      "channel_id": "<channel_id>"
    },
    "name": "discord_intent_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
denyNoDeny bitfield for a reviewed channel overwrite.
allowNoAllow bitfield for a reviewed channel overwrite.
intentYesOne supported explicit Discord intent.
guild_idYesTarget guild snowflake.
channel_idYesTarget channel snowflake.
announcementNoAnnouncement text for announce intents.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "access": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "permissions": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "scopes": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "permissions",
      -          "scopes"
      -        ],
      -        "type": "object"
      -      },
      -      "approval_boundary": {
      -        "enum": [
      -          "per_write",
      -          "none"
      -        ],
      -        "type": "string"
      -      },
      -      "intent": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "plan_digest": {
      -        "pattern": "^sha256:[a-f0-9]{64}$",
      -        "type": "string"
      -      },
      -      "schema_version": {
      -        "const": "discord_intent_plan.v1",
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "ready",
      -          "needs_input",
      -          "unsupported"
      -        ],
      -        "type": "string"
      -      },
      -      "steps": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "access": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "auth": {
      -                  "type": "string"
      -                },
      -                "hierarchy": {
      -                  "type": "string"
      -                },
      -                "intents": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "permissions": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                },
      -                "scope": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "auth",
      -                "permissions",
      -                "intents",
      -                "scope",
      -                "hierarchy"
      -              ],
      -              "type": "object"
      -            },
      -            "action": {
      -              "enum": [
      -                "prepare",
      -                "write",
      -                "verify"
      -              ],
      -              "type": "string"
      -            },
      -            "args": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "depends_on": {
      -              "items": {
      -                "type": "string"
      -              },
      -              "type": "array"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "purpose": {
      -              "type": "string"
      -            },
      -            "requires_approval": {
      -              "type": "boolean"
      -            },
      -            "tool": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "action",
      -            "tool",
      -            "purpose",
      -            "args",
      -            "access",
      -            "depends_on",
      -            "requires_approval"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "target": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "channel_id": {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          "guild_id": {
      -            "description": "Discord guild (server) ID",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "guild_id",
      -          "channel_id"
      -        ],
      -        "type": "object"
      -      },
      -      "verification_step_id": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "warnings": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "schema_version",
      -      "status",
      -      "intent",
      -      "target",
      -      "steps",
      -      "access",
      -      "approval_boundary",
      -      "verification_step_id",
      -      "plan_digest",
      -      "warnings"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "access": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "permissions": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "scopes": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "permissions",
      +          "scopes"
      +        ],
      +        "type": "object"
      +      },
      +      "approval_boundary": {
      +        "enum": [
      +          "per_write",
      +          "none"
      +        ],
      +        "type": "string"
      +      },
      +      "intent": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "plan_digest": {
      +        "pattern": "^sha256:[a-f0-9]{64}$",
      +        "type": "string"
      +      },
      +      "schema_version": {
      +        "const": "discord_intent_plan.v1",
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "ready",
      +          "needs_input",
      +          "unsupported"
      +        ],
      +        "type": "string"
      +      },
      +      "steps": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "access": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "auth": {
      +                  "type": "string"
      +                },
      +                "hierarchy": {
      +                  "type": "string"
      +                },
      +                "intents": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "permissions": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "scope": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "auth",
      +                "permissions",
      +                "intents",
      +                "scope",
      +                "hierarchy"
      +              ],
      +              "type": "object"
      +            },
      +            "action": {
      +              "enum": [
      +                "prepare",
      +                "write",
      +                "verify"
      +              ],
      +              "type": "string"
      +            },
      +            "args": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "depends_on": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "purpose": {
      +              "type": "string"
      +            },
      +            "requires_approval": {
      +              "type": "boolean"
      +            },
      +            "tool": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "action",
      +            "tool",
      +            "purpose",
      +            "args",
      +            "access",
      +            "depends_on",
      +            "requires_approval"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "target": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "channel_id": {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          "guild_id": {
      +            "description": "Discord guild (server) ID",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "guild_id",
      +          "channel_id"
      +        ],
      +        "type": "object"
      +      },
      +      "verification_step_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "warnings": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "schema_version",
      +      "status",
      +      "intent",
      +      "target",
      +      "steps",
      +      "access",
      +      "approval_boundary",
      +      "verification_step_id",
      +      "plan_digest",
      +      "warnings"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Addedv0.26.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, but the description adds materially new behavior: no Discord REST call is made, no approval is granted, returned steps are never executed, and scope middleware may still perform a read-only target lookup. The mention of a stable SHA-256 plan digest also tells the agent the output is deterministic and comparable across calls.

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?

Three labeled sections (Purpose, Safety, Returns) front-load the definition, the intent list and read-only guarantee, with no filler. Every sentence carries distinct information, and the read-only claim is not merely a restatement of the annotation because it is scoped to planner behavior.

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?

With an output schema present and annotations covering the safety profile, the description covers purpose, accepted intents and execution semantics well. The remaining gap is that it does not state which inputs are conditionally required per intent (announcement for announce, allow/deny for lock overwrites), which matters for a six-parameter planning tool.

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 would be 3, but the description adds real value by enumerating the four accepted intent values and their bounded Vietnamese aliases — the schema's intent parameter has no enum, so this is the only place that constraint is documented. It does not clarify the conditional role of allow/deny bitfields or announcement (required for announce intents), which remains a gap.

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 states a specific verb and resource — normalize an explicit Discord outcome into a deterministic, reviewable plan — and enumerates the exact supported intents (lock_channel, announce, verify, lock_and_announce). It also implicitly separates itself from the execution siblings (channels_modify, channels_modify_permissions) by stating it never executes the returned steps.

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?

It makes the use context clear: this is a pre-execution planning step, and the caller must pick one of four explicit intents. However, it never names a sibling tool or states an explicit when-not condition (e.g., 'do not call for multi-channel or role changes — use guild_change_plan instead'), so routing between the planner siblings is left to inference.

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