Skip to main content
Glama
discord-mcp

discord-mcp

webhooks_list_guild

Read-onlyIdempotent

Lists every webhook across all channels in a Discord guild to support server-wide audits, unauthorized webhook discovery, and cleanup planning.

Instructions

Purpose: List every webhook in a guild (across all channels).

When to use: - Server-wide audit, find unauthorized webhooks, plan a cleanup.

When NOT to use: - Single-channel scope → webhooks_list_channel.

Returns: {webhooks:[{id,name,type,channel_id,application_id}], count}. Structured names remain raw creator-controlled data; the human-readable text response fences them.

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": "webhooks_list_guild"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesGuild to query

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "count": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "webhooks": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "application_id": {
      -              "anyOf": [
      -                {
      -                  "description": "Discord application ID",
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "channel_id": {
      -              "anyOf": [
      -                {
      -                  "description": "Discord channel ID (snowflake)",
      -                  "pattern": "^\\d{17,20}$",
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "id": {
      -              "description": "Discord webhook ID",
      -              "pattern": "^\\d{17,20}$",
      -              "type": "string"
      -            },
      -            "name": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "type": {
      -              "maximum": 9007199254740991,
      -              "minimum": -9007199254740991,
      -              "type": "integer"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "name",
      -            "type",
      -            "channel_id",
      -            "application_id"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "webhooks",
      -      "count"
      -    ],
      -    "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": {
      +      "count": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "webhooks": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "application_id": {
      +              "anyOf": [
      +                {
      +                  "description": "Discord application ID",
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "channel_id": {
      +              "anyOf": [
      +                {
      +                  "description": "Discord channel ID (snowflake)",
      +                  "pattern": "^\\d{17,20}$",
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "id": {
      +              "description": "Discord webhook ID",
      +              "pattern": "^\\d{17,20}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "type": {
      +              "maximum": 9007199254740991,
      +              "minimum": -9007199254740991,
      +              "type": "integer"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "name",
      +            "type",
      +            "channel_id",
      +            "application_id"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "webhooks",
      +      "count"
      +    ],
      +    "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. First observedv0.22.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully structured. The description's genuine addition beyond that is the security note that names are creator-controlled data and are fenced in the text response, which is useful prompt-injection context. However it says nothing about pagination limits or result-size behavior for a potentially large server-wide enumeration, and that is the main operational unknown for a list tool.

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?

Labeled Purpose / When to use / When NOT to use / Returns sections make it scannable and front-loaded, with zero filler prose. The Returns line slightly duplicates the output schema already supplied, though the fencing caveat inside it earns its place.

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, so the return shape need not be re-explained at length, and annotations carry the safety profile. Given that support, purpose, routing, and the injection-safety caveat cover everything 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only one parameter exists and schema coverage is 100%, with the schema describing it as 'Guild to query' and enforcing a snowflake pattern. The description adds no format detail beyond that, so it neither helps nor hurts; with a single fully-documented parameter the baseline of 3 is slightly raised by the fact that the guild-wide scope is made explicit in the purpose line.

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 explicit scope: 'List every webhook in a guild (across all channels)'. The parenthetical scope qualifier is exactly what separates it from the channel-scoped sibling, so an agent can choose correctly without opening a 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 both positive triggers ('server-wide audit, find unauthorized webhooks, plan a cleanup') and an explicit exclusion routing to `webhooks_list_channel` for single-channel scope. This is the when/when-not/alternative pattern at full strength.

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