Skip to main content
Glama

discord_list_bans

Read-only

List users banned from a Discord server with their ban reasons, up to 1000 per page. Pass the returned nextCursor as after to retrieve additional pages.

Instructions

List the users banned from the server, with their ban reasons. Returns { bans: [...], nextCursor }. A page holds up to 1000 bans; if nextCursor is non-null, pass it back as after to fetch the next page. Requires the Ban Members or View Audit Log permission. Read-only.

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

Input Schema

NameRequiredDescriptionDefault
afterNoPagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page.
limitNoMax bans per page (1–1000). Default 1000.
guild_idYesDiscord server (guild) ID (snowflake).

Output Schema

NameRequiredDescriptionDefault
bansYes
nextCursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.2.1
    • removedOutput schema / properties / bans / items / properties / reason / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / bans / items / properties / reason / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / nextCursor / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / nextCursor / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed7 schema fields changedv2.0.0
    • addedInput schema / properties / after / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / limit / default
      Added value: +1000
    • addedInput schema / properties / limit / maximum
      Added value: +1000
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "bans": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "reason": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "user_id": {
      +            "type": "string"
      +          },
      +          "username": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "user_id",
      +          "username",
      +          "reason"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "nextCursor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "bans",
      +    "nextCursor"
      +  ],
      +  "type": "object"
      +}
  4. Changed2 schema fields changedv1.7.0
    • addedInput schema / properties / after
      Added value: +{
      +  "description": "Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page.",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Optional max number of bans to fetch. Omit to fetch all."New value: +"Max bans per page (1–1000). Default 1000."
  5. Changed2 schema fields changedv1.6.0
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max bans to fetch."New value: +"Optional max number of bans to fetch. Omit to fetch all."
  6. Addedv1.5.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description redundantly restates 'Read-only' rather than extending it. It does add real behavioral value with the permission prerequisite and the page-size/pagination contract, but says nothing about ordering of bans, what happens at the end of the list, or error behavior when the permission is missing.

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?

Purpose comes first, then return shape, then pagination mechanics, then prerequisites — a clean front-loaded order. Four sentences, none of which are filler, and the cursor round-trip is stated in one compact clause.

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 read-only, three-parameter list tool with full schema coverage and an output schema, the definition covers purpose, permissions, return envelope, and pagination adequately. Minor gaps remain around ordering and termination of the cursor loop, but nothing an agent needs to call it correctly 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 coverage is 100%, so the baseline is 3; the description's cursor explanation largely repeats the schema's own 'after' description ('Pass the previous response's nextCursor to fetch the next page'). The 'up to 1000 bans per page' note similarly restates the limit maximum, adding no format or edge-case detail the schema lacks.

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 ('List the users banned from the server') and adds what the records contain ('with their ban reasons'). This is clearly distinguishable from the mutation siblings discord_ban_member and discord_bulk_ban without opening any 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?

Gives the operational context needed to invoke it: required permissions (Ban Members or View Audit Log) and the pagination loop condition ('if nextCursor is non-null, pass it back as after'). It does not name an alternative tool or state when not to use it, but no plausible sibling overlap exists for read-only ban listing.

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