Skip to main content
Glama

discord_create_invite

Create a Discord channel invite link, optionally limiting lifetime, uses, and temporary membership; returns the invite URL and code.

Instructions

Create an invite link for a channel, optionally limiting its lifetime, uses, and membership type. SECURITY: anyone with the returned link can join the server. Requires the Create Instant Invite permission. Returns the invite URL and code. For an invite that opens a scheduled event, use discord_create_event_invite.

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": "discord_create_invite"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniqueNoIf true, always mint a fresh invite instead of reusing an equivalent existing one. Default false.
max_ageNoInvite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h).
max_usesNoMaximum number of uses, 0–100; 0 means unlimited. Default 0.
temporaryNoIf true, members who join via this invite are removed when they disconnect (unless they get a role). Default false.
channel_idYesID (snowflake) of the channel the invite leads to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed11 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / max_age / default
      Added value: +86400
    • changedInput schema / properties / max_age / description
      Previous value: -"Invite lifetime in seconds; 0 means it never expires. Default 86400 (24h)."New value: +"Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h)."
    • addedInput schema / properties / max_age / maximum
      Added value: +604800
    • addedInput schema / properties / max_age / minimum
      Added value: +0
    • changedInput schema / properties / max_age / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / max_uses / default
      Added value: +0
    • changedInput schema / properties / max_uses / description
      Previous value: -"Maximum number of uses; 0 means unlimited. Default 0."New value: +"Maximum number of uses, 0–100; 0 means unlimited. Default 0."
    • addedInput schema / properties / max_uses / maximum
      Added value: +100
    • addedInput schema / properties / max_uses / minimum
      Added value: +0
    • changedInput schema / properties / max_uses / type
      Previous value: -"number"New value: +"integer"
  3. Changed5 schema fields changedv1.6.0
    • addedInput schema / properties / channel_id / description
      Added value: +"ID (snowflake) of the channel the invite leads to."
    • changedInput schema / properties / max_age / description
      Previous value: -"Invite duration in seconds (0 = never expires). Default 86400 (24h)."New value: +"Invite lifetime in seconds; 0 means it never expires. Default 86400 (24h)."
    • changedInput schema / properties / max_uses / description
      Previous value: -"Max number of uses (0 = unlimited). Default 0."New value: +"Maximum number of uses; 0 means unlimited. Default 0."
    • changedInput schema / properties / temporary / description
      Previous value: -"If true, members joined via this invite are kicked when they disconnect. Default false."New value: +"If true, members who join via this invite are removed when they disconnect (unless they get a role). Default false."
    • changedInput schema / properties / unique / description
      Previous value: -"If true, create a new unique invite even if one exists. Default false."New value: +"If true, always mint a fresh invite instead of reusing an equivalent existing one. Default false."
  4. Addedv1.5.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a non-destructive, open-world, non-idempotent write, so the bar is lower. The description still adds value beyond them: the security consequence of the returned link, the required Create Instant Invite permission, and the return shape ('invite URL and code'). It omits failure modes such as what happens when the permission is missing or rate-limit behavior.

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, then the security caveat, the permission prerequisite, and the alternative route. Every sentence carries information an agent needs; nothing is padded or repeated from the schema.

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?

No output schema exists, and the description compensates by stating it returns the invite URL and code. Combined with the security note, permission requirement, and sibling routing, an agent has everything needed to call this 5-parameter tool correctly.

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 100%, so the schema itself documents max_age, max_uses, temporary, and unique in detail; baseline is 3. The description only restates the option categories in prose ('lifetime, uses, and membership type') and never mentions the unique reuse behavior, so it adds little beyond the schema.

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 ('Create an invite link for a channel') plus the scope of options it controls (lifetime, uses, membership type). It explicitly separates itself from discord_create_event_invite, so an agent can pick correctly without opening either schema.

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?

Names the alternative tool and the condition that selects it ('For an invite that opens a scheduled event, use discord_create_event_invite'), which is real routing guidance. It does not state when *not* to mint an invite at all (e.g. reusing an existing one, which the unique parameter implies), leaving a small gap.

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