Create invite
create_inviteGenerate a Discord channel invite link with customizable expiration, usage limits, and temporary membership.
Instructions
Generate an invite link for a channel.
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": "<channel>"
},
"name": "create_invite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. | |
| channel | Yes | Channel to invite users to (name or id). | |
| max_uses | No | Maximum number of uses. 0 = unlimited. Defaults to unlimited. | |
| temporary | No | Grant temporary membership (user is kicked if they don't get a role). Defaults to false. | |
| max_age_hours | No | Hours until the invite expires. 0 = never expires. Defaults to 24. |