Skip to main content
Glama
discord-mcp

discord-mcp

invites_create_channel

Creates a Discord channel invite with custom expiry, use caps, and optional stream or embedded-app targeting to control access.

Instructions

Purpose: Create a new invite for a channel.

When to use: - Issue a fresh invite with custom expiry / use cap. - Generate a stream-target invite (target_type=1, target_user_id=…).

When NOT to use: - Reuse an existing invite → invites_list_channel then pick one.

Example: {channel_id:"112233445566778899", max_age:86400, max_uses:5, unique:true}

Returns: {code, expires_at, max_age, max_uses, temporary, unique, inviter_id}.

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": {
      "channel_id": "<channel_id>"
    },
    "name": "invites_create_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniqueNoForce a brand-new invite even if one with same parameters exists.
max_ageNoSeconds until expiry (0 = never). Default 86400.
max_usesNoMax uses (0 = unlimited). Default 0.
temporaryNoIf true, kicks members who do not get assigned a role. Default false.
channel_idYesChannel to create the invite for
target_typeNo1 = STREAM, 2 = EMBEDDED_APPLICATION
audit_reasonNoReason recorded in audit log (X-Audit-Log-Reason header)
target_user_idNoUser whose stream to target (target_type=1)
target_application_idNoEmbedded application to target (target_type=2)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.34.1
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "code": {
      -        "description": "Discord invite code (base62, NOT a snowflake)",
      -        "maxLength": 32,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "inviter_id": {
      -        "description": "Discord user ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "max_age": {
      -        "type": "number"
      -      },
      -      "max_uses": {
      -        "type": "number"
      -      },
      -      "temporary": {
      -        "type": "boolean"
      -      },
      -      "unique": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code"
      -    ],
      -    "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": {
      +      "code": {
      +        "description": "Discord invite code (ASCII letters, digits, _ or -; NOT a snowflake)",
      +        "maxLength": 32,
      +        "minLength": 1,
      +        "pattern": "^[A-Za-z0-9_-]+$",
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "inviter_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "max_age": {
      +        "type": "number"
      +      },
      +      "max_uses": {
      +        "type": "number"
      +      },
      +      "temporary": {
      +        "type": "boolean"
      +      },
      +      "unique": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code"
      +    ],
      +    "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. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "code": {
      -        "description": "Discord invite code (base62, NOT a snowflake)",
      -        "maxLength": 32,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "expires_at": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "inviter_id": {
      -        "description": "Discord user ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "max_age": {
      -        "type": "number"
      -      },
      -      "max_uses": {
      -        "type": "number"
      -      },
      -      "temporary": {
      -        "type": "boolean"
      -      },
      -      "unique": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code"
      -    ],
      -    "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": {
      +      "code": {
      +        "description": "Discord invite code (base62, NOT a snowflake)",
      +        "maxLength": 32,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "expires_at": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "inviter_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "max_age": {
      +        "type": "number"
      +      },
      +      "max_uses": {
      +        "type": "number"
      +      },
      +      "temporary": {
      +        "type": "boolean"
      +      },
      +      "unique": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code"
      +    ],
      +    "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"
      +  }
      +]
  3. First observedv0.22.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true). The description adds value beyond them by explaining the `unique` flag's effect (force a brand-new invite even if an identical one exists) and the returned fields, which matters for non-idempotent creation. It does not mention required permissions (e.g. MANAGE_CHANNELS) or rate limits, which keeps it below a 5.

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?

Well front-loaded with labeled sections and a compact example; every block is scannable. The 'Returns:' line largely restates the output schema that already exists, so it is minor redundancy rather than earned content.

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 9-parameter, non-idempotent creation tool with annotations and an output schema, the description covers purpose, selection criteria, an example, and return fields. The main omission is prerequisite context such as permission requirements or failure modes, which an agent would need before invoking.

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 schema already carries per-parameter meaning and the baseline would be 3. The description adds an end-to-end example payload and explicitly ties target_type=1 to target_user_id, which illustrates cross-parameter usage beyond the isolated schema docs.

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?

Opens with a specific verb+resource: 'Create a new invite for a channel.' This is clearly distinguishable from the sibling invites_list_channel (retrieval) and invites_delete (removal), so an agent can route without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit 'When to use' bullets (custom expiry/use cap, stream-target invites) and a 'When NOT to use' section that names the exact alternative workflow: invites_list_channel to reuse an existing invite. Both selection conditions are stated rather than inferred.

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