Skip to main content
Glama
cappyeo

discord-mcp

invites_create_channel

Create a new channel invite with custom expiry, usage limits, and stream targeting. Returns invite code and details.

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}.

Input Schema

TableJSON 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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations indicate readOnlyHint=false (write operation) and destructiveHint=false. The description adds the 'unique' nuance and stream-target capability, but these are also present in the schema. It does not disclose prerequisites like permissions, rate limits, or the fact that without unique=true the API might reuse an existing invite (implied but not explicitly stated).

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?

Description is well-structured with bold section headers (Purpose, When to use, When NOT to use, Example, Returns) and is extremely concise. Every sentence provides actionable information with no filler.

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 tool with 9 parameters and an output schema, the description covers purpose, usage boundaries, an example, and return fields. It doesn't exhaustively explain all parameter combinations, but the 100% schema coverage and output schema fill those gaps. The main use cases are well represented.

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 baseline is 3. The description adds a concrete example with typical values and highlights the stream-target combination (target_type=1, target_user_id), going slightly beyond the schema's individual parameter descriptions.

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 clearly states 'Create a new invite for a channel' with a specific verb and resource. It further distinguishes itself from siblings by explicitly mentioning stream-target invites and by listing when NOT to use (reuse existing invite → invite_list_channel).

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' and 'When NOT to use' sections. It names an alternative tool (invites_list_channel) for reusing existing invites, giving clear decision-making guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cappyeo/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server