Skip to main content
Glama
discord-mcp

discord-mcp

invites_list_channel

Read-onlyIdempotent

List active invites for a single Discord channel to audit who created them, check usage counts, and identify invites to delete during cleanup.

Instructions

Purpose: List active invites for a single channel.

When to use: - Audit who created which invites and how often each is used. - Find candidates for invites_delete cleanup.

When NOT to use: - All invites across a guild → use guild_list_invites (Plan 7 Phase D).

Returns: {invites: [{code, uses, max_uses, max_age, expires_at, inviter_id, inviter_name, temporary}]}.

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_list_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
channel_idYesChannel to list invites for

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": {
      -      "invites": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "description": "Discord invite code (base62, NOT a snowflake)",
      -              "maxLength": 32,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "expires_at": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "inviter_id": {
      -              "description": "Discord user ID",
      -              "pattern": "^\\d{17,20}$",
      -              "type": "string"
      -            },
      -            "inviter_name": {
      -              "type": "string"
      -            },
      -            "max_age": {
      -              "type": "number"
      -            },
      -            "max_uses": {
      -              "type": "number"
      -            },
      -            "temporary": {
      -              "type": "boolean"
      -            },
      -            "uses": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "code"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "invites"
      -    ],
      -    "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": {
      +      "invites": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "description": "Discord invite code (ASCII letters, digits, _ or -; NOT a snowflake)",
      +              "maxLength": 32,
      +              "minLength": 1,
      +              "pattern": "^[A-Za-z0-9_-]+$",
      +              "type": "string"
      +            },
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "expires_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inviter_id": {
      +              "description": "Discord user ID",
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "inviter_name": {
      +              "type": "string"
      +            },
      +            "max_age": {
      +              "type": "number"
      +            },
      +            "max_uses": {
      +              "type": "number"
      +            },
      +            "temporary": {
      +              "type": "boolean"
      +            },
      +            "uses": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "code"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "invites"
      +    ],
      +    "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": {
      -      "invites": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "code": {
      -              "description": "Discord invite code (base62, NOT a snowflake)",
      -              "maxLength": 32,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "created_at": {
      -              "type": "string"
      -            },
      -            "expires_at": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "inviter_id": {
      -              "description": "Discord user ID",
      -              "pattern": "^\\d{17,20}$",
      -              "type": "string"
      -            },
      -            "inviter_name": {
      -              "type": "string"
      -            },
      -            "max_age": {
      -              "type": "number"
      -            },
      -            "max_uses": {
      -              "type": "number"
      -            },
      -            "temporary": {
      -              "type": "boolean"
      -            },
      -            "uses": {
      -              "type": "number"
      -            }
      -          },
      -          "required": [
      -            "code"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "invites"
      -    ],
      -    "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": {
      +      "invites": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "code": {
      +              "description": "Discord invite code (base62, NOT a snowflake)",
      +              "maxLength": 32,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "created_at": {
      +              "type": "string"
      +            },
      +            "expires_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inviter_id": {
      +              "description": "Discord user ID",
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "inviter_name": {
      +              "type": "string"
      +            },
      +            "max_age": {
      +              "type": "number"
      +            },
      +            "max_uses": {
      +              "type": "number"
      +            },
      +            "temporary": {
      +              "type": "boolean"
      +            },
      +            "uses": {
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "code"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "invites"
      +    ],
      +    "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.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds real value beyond that by specifying it returns only 'active' invites with fields like uses, max_uses, expires_at, and temporary, which tells the agent what data is and isn't present. It omits any note on permissions needed or pagination limits, keeping it short of 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 Purpose/When to use/When NOT to use/Returns sections, and every usage sentence carries routing information. The parenthetical '(Plan 7 Phase D)' is internal project noise that earns no place for an agent reader.

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?

A one-parameter read tool whose annotations cover safety and which has an output schema, so the Returns line is largely redundant but harmless. Nothing an agent needs to call it correctly is missing; only secondary details like permission requirements are absent.

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% for the single channel_id parameter, so the schema already carries the semantics including the snowflake pattern. The description only restates 'for a single channel' and adds no format or constraint detail beyond the schema, so 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?

States a specific verb and resource with scope: 'List active invites for a single channel.' The channel-vs-guild scoping is made explicit, so an agent can distinguish it from guild_list_invites 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 Guidelines5/5

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

Provides explicit when-to-use cases (auditing invite creators and usage, finding cleanup candidates) and an explicit when-NOT-to-use that names the alternative tool and the condition selecting it.

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