Skip to main content
Glama

discord_list_invites

Read-only

Lists all active invites across a Discord server, including code, URL, channel, inviter, uses, and expiry, to audit or manage server invitations.

Instructions

List all active invites across a server (code, url, channel, inviter, uses, expiry). Requires the Manage Server or View Audit Log permission; without Manage Server or Manage Channels, Discord omits invite metadata, so uses, max_uses and max_age read 0, temporary reads false and created_at null. Read-only. Use discord_list_channel_invites to scope to one 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": {
      "guild_id": "<guild_id>"
    },
    "name": "discord_list_invites"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesDiscord server (guild) ID (snowflake).

Output Schema

NameRequiredDescriptionDefault
invitesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changedv2.2.1
    • removedOutput schema / properties / invites / items / properties / channel_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / channel_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / invites / items / properties / channel_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / channel_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / invites / items / properties / created_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / created_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / invites / items / properties / expires_at / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / expires_at / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / invites / items / properties / guild_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / guild_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / invites / items / properties / guild_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / invites / items / properties / guild_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "invites": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "channel_id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "channel_name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "code": {
      +            "type": "string"
      +          },
      +          "created_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "expires_at": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "guild_id": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "guild_name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "inviter": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "id": {
      +                    "type": "string"
      +                  },
      +                  "username": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "id",
      +                  "username"
      +                ],
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "max_age": {
      +            "type": "number"
      +          },
      +          "max_uses": {
      +            "type": "number"
      +          },
      +          "temporary": {
      +            "type": "boolean"
      +          },
      +          "url": {
      +            "type": "string"
      +          },
      +          "uses": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "url",
      +          "guild_id",
      +          "guild_name",
      +          "channel_id",
      +          "channel_name",
      +          "inviter",
      +          "uses",
      +          "max_uses",
      +          "max_age",
      +          "temporary",
      +          "created_at",
      +          "expires_at"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "invites"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
  5. Addedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, the description discloses the specific failure mode: without Manage Server or Manage Channels, Discord omits invite metadata and uses/max_uses/max_age read 0, temporary reads false, created_at null. That is the kind of silent-degradation behavior an agent cannot infer from annotations and would otherwise misreport.

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?

Front-loaded with the action and returned fields, then permissions, then the sibling routing sentence — a sensible ordering with no filler. The standalone "Read-only." sentence duplicates readOnlyHint and is the one redundant element.

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 single-parameter list tool with an output schema and annotations, the description covers returned fields, permission gating, degraded-return semantics and sibling routing. Nothing an agent needs in order to call it and interpret the result is missing.

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% with a single documented guild_id (snowflake pattern), so the schema already carries the parameter semantics. The description adds no further detail on the guild_id beyond context about which server scope it implies, so the baseline 3 applies.

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?

"List all active invites across a server" gives a specific verb and resource, and the parenthetical enumerates the returned fields (code, url, channel, inviter, uses, expiry). It explicitly contrasts itself with discord_list_channel_invites, so an agent can separate the two without inspecting schemas.

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?

It names the alternative (discord_list_channel_invites) and the condition that selects it (to scope to one channel), which is exactly the routing decision an agent faces here. It also states the permission prerequisite, so the agent knows a call may succeed but return degraded data.

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