Skip to main content
Glama

discord_list_webhooks

Read-only

List Discord webhooks for a channel or entire server, returning IDs, names, channels, visible tokens, and creators. Use channel_id or guild_id; Manage Webhooks permission required.

Instructions

List the webhooks in a single channel or across a whole server (id, name, channel, token when visible, creator). Provide channel_id or guild_id; when both are given, only channel_id is used. Requires the Manage Webhooks permission. SECURITY: a returned token lets anyone post as that webhook; treat it as a secret. Pass the id and token to discord_send_webhook_message, or create a webhook with discord_create_webhook. Remove one with discord_delete_webhook.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "discord_list_webhooks"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idNoDiscord server (guild) ID (snowflake) to list all webhooks for. Ignored when channel_id is given.
channel_idNoID (snowflake) of a channel to list webhooks for. Takes precedence over guild_id.

Output Schema

NameRequiredDescriptionDefault
webhooksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.4.0
    • changedInput schema / properties / channel_id / description
      Previous value: -"ID (snowflake) of a channel to list webhooks for. Mutually exclusive with guild_id."New value: +"ID (snowflake) of a channel to list webhooks for. Takes precedence over guild_id."
    • changedInput schema / properties / guild_id / description
      Previous value: -"Discord server (guild) ID (snowflake) to list all webhooks for. Mutually exclusive with channel_id."New value: +"Discord server (guild) ID (snowflake) to list all webhooks for. Ignored when channel_id is given."
  2. Changed6 schema fields changedv2.2.1
    • removedOutput schema / properties / webhooks / items / properties / creator / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / webhooks / items / properties / creator / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / webhooks / items / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / webhooks / items / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / webhooks / items / properties / token / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / webhooks / items / properties / token / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  3. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed3 schema fields changedv2.0.0
    • addedInput schema / properties / channel_id / pattern
      Added value: +"^\\d{17,20}$"
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "webhooks": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "channel_id": {
      +            "type": "string"
      +          },
      +          "creator": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "token": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "id",
      +          "name",
      +          "channel_id",
      +          "token",
      +          "creator"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "webhooks"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changedv1.6.0
    • changedInput schema / properties / channel_id / description
      Previous value: -"List webhooks for a specific channel."New value: +"ID (snowflake) of a channel to list webhooks for. Mutually exclusive with guild_id."
    • changedInput schema / properties / guild_id / description
      Previous value: -"List all webhooks in a guild."New value: +"Discord server (guild) ID (snowflake) to list all webhooks for. Mutually exclusive with channel_id."
  6. Addedv1.5.0
  7. Removedv1.0.0
  8. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the required Manage Webhooks permission and a concrete security warning that a returned token grants impersonation rights. That is material behavioral context an agent cannot derive from the annotations or schema.

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 purpose and return fields, then param rule, permission, security, and sibling routing in short clauses. Every sentence earns its place except the precedence restatement, which slightly duplicates the schema.

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?

An output schema exists and annotations carry the safety profile, so the description need not explain return values. It covers permissions, secrecy handling, param interaction, and next steps, leaving nothing an agent needs to call this correctly.

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 both snowflake params are already fully documented, including the precedence rule. The description's statement that channel_id wins over guild_id duplicates what the schema already says rather than adding format or edge-case detail, so it stays at the baseline.

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 webhooks") with explicit scope: one channel or a whole server. It even enumerates the returned fields (id, name, channel, token, creator), which distinguishes it from sibling list tools like discord_list_channel_invites.

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?

Gives the exact selection rule between the two optional params ("when both are given, only channel_id is used") and routes the agent to the correct siblings for follow-up actions: discord_send_webhook_message, discord_create_webhook, and discord_delete_webhook. When-to-use and alternatives are both explicit.

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