Skip to main content
Glama

discord_delete_invite

DestructiveIdempotent

Revoke a Discord invite code to prevent further use; this is irreversible, records an optional audit-log reason, and requires Manage Channels or Manage Server.

Instructions

Revoke an invite by its code so it can no longer be used. IRREVERSIBLE (the code is freed). Requires the Manage Channels permission (or Manage Server). The reason is recorded in the audit log. Find codes with discord_list_invites.

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": {
      "invite_code": "<invite_code>"
    },
    "name": "discord_delete_invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in the server audit log.
invite_codeYesThe invite code to revoke. A full discord.gg/<code> URL is also accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / invite_code / description
      Previous value: -"The invite code to revoke."New value: +"The invite code to revoke. A full discord.gg/<code> URL is also accepted."
    • addedInput schema / properties / reason / description
      Added value: +"Optional reason recorded in the server audit log."
  3. Addedv1.5.0

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond the destructiveHint/readOnlyHint annotations: the operation is irreversible, the code is freed, an elevated permission is required, and the reason is audit-logged. That covers what gets destroyed and the auth requirements an agent needs before invoking.

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?

Four short sentences, front-loaded with the action and its irreversibility, then permission, audit behavior, and a discovery pointer. No sentence is filler.

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 two-parameter destructive tool with full schema coverage and annotations, everything an agent needs is present: effect, reversibility, permissions, audit note, and how to find the code. No output schema is needed for a revoke operation.

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 coverage is 100% and already documents both the invite_code (including full-URL acceptance) and the audit-log reason, so the description adds no new parameter meaning. Baseline 3 is appropriate.

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?

States a specific verb and resource ('Revoke an invite by its code') plus the resulting effect ('so it can no longer be used'). This clearly separates it from create/get/list invite siblings without needing their schemas.

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?

Gives the precondition (Manage Channels or Manage Server) and routes the agent to discord_list_invites to obtain a code. It does not explicitly say when to prefer discord_get_invite or when not to use this, but the context is clear enough to select correctly.

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