{
  "server": {
    "name": "discord-mcp",
    "title": "discord-mcp",
    "icons": [
      {
        "src": "https://raw.githubusercontent.com/PaSympa/discord-mcp/main/.github/assets/logo.svg",
        "mimeType": "image/svg+xml"
      },
      {
        "src": "https://raw.githubusercontent.com/PaSympa/discord-mcp/main/.github/assets/logo-512.png",
        "mimeType": "image/png"
      }
    ],
    "version": "2.4.0",
    "websiteUrl": "https://github.com/PaSympa/discord-mcp"
  },
  "totals": {
    "tools": 100,
    "toolsets": 14,
    "bytes": 140592,
    "tokens": 35148,
    "risk": {
      "read": 35,
      "write": 47,
      "destructive": 18
    },
    "dryRunDefaults": 4
  },
  "toolsets": [
    {
      "name": "discovery",
      "tools": 4,
      "bytes": 4675,
      "tokens": 1168.75,
      "risk": {
        "read": 4,
        "write": 0,
        "destructive": 0
      }
    },
    {
      "name": "messages",
      "tools": 21,
      "bytes": 36767,
      "tokens": 9191.75,
      "risk": {
        "read": 7,
        "write": 11,
        "destructive": 3
      }
    },
    {
      "name": "channels",
      "tools": 8,
      "bytes": 7672,
      "tokens": 1918,
      "risk": {
        "read": 0,
        "write": 7,
        "destructive": 1
      }
    },
    {
      "name": "permissions",
      "tools": 6,
      "bytes": 7741,
      "tokens": 1935.25,
      "risk": {
        "read": 2,
        "write": 2,
        "destructive": 2
      }
    },
    {
      "name": "members",
      "tools": 11,
      "bytes": 14426,
      "tokens": 3606.5,
      "risk": {
        "read": 4,
        "write": 3,
        "destructive": 4
      }
    },
    {
      "name": "roles",
      "tools": 9,
      "bytes": 9690,
      "tokens": 2422.5,
      "risk": {
        "read": 2,
        "write": 6,
        "destructive": 1
      }
    },
    {
      "name": "moderation",
      "tools": 1,
      "bytes": 1722,
      "tokens": 430.5,
      "risk": {
        "read": 1,
        "write": 0,
        "destructive": 0
      }
    },
    {
      "name": "screening",
      "tools": 2,
      "bytes": 2741,
      "tokens": 685.25,
      "risk": {
        "read": 1,
        "write": 1,
        "destructive": 0
      }
    },
    {
      "name": "stats",
      "tools": 1,
      "bytes": 1704,
      "tokens": 426,
      "risk": {
        "read": 1,
        "write": 0,
        "destructive": 0
      }
    },
    {
      "name": "forums",
      "tools": 10,
      "bytes": 13019,
      "tokens": 3254.75,
      "risk": {
        "read": 4,
        "write": 4,
        "destructive": 2
      }
    },
    {
      "name": "webhooks",
      "tools": 8,
      "bytes": 12011,
      "tokens": 3002.75,
      "risk": {
        "read": 2,
        "write": 4,
        "destructive": 2
      }
    },
    {
      "name": "scheduled_events",
      "tools": 7,
      "bytes": 11993,
      "tokens": 2998.25,
      "risk": {
        "read": 3,
        "write": 3,
        "destructive": 1
      }
    },
    {
      "name": "invites",
      "tools": 5,
      "bytes": 6697,
      "tokens": 1674.25,
      "risk": {
        "read": 3,
        "write": 1,
        "destructive": 1
      }
    },
    {
      "name": "dm",
      "tools": 7,
      "bytes": 9734,
      "tokens": 2433.5,
      "risk": {
        "read": 1,
        "write": 5,
        "destructive": 1
      }
    }
  ],
  "tools": [
    {
      "name": "discord_list_guilds",
      "title": "List servers",
      "toolset": "discovery",
      "risk": "read",
      "purpose": "List the Discord servers (guilds) the bot is a member of (id, name, member count, icon).",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 899,
      "tokens": 224.75,
      "definition": {
        "name": "discord_list_guilds",
        "description": "List the Discord servers (guilds) the bot is a member of (id, name, member count, icon). When DISCORD_ALLOWED_GUILDS is set, only those servers are listed. With DISCORD_GUILD_MEMBERS=false, the member count is not updated after the bot connects. Takes no arguments. Read-only. Start here to discover the guild_id needed by most other tools.",
        "inputSchema": {
          "type": "object",
          "properties": {},
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "guilds": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "memberCount": {
                    "type": "number"
                  },
                  "icon": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "memberCount",
                  "icon"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "guilds"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List servers",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_guild_info",
      "title": "Get server info",
      "toolset": "discovery",
      "risk": "read",
      "purpose": "Get details about one server: name, description, member/channel/role counts, boost tier, owner, and creation date.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_server_stats"
      ],
      "permissions": [],
      "bytes": 1265,
      "tokens": 316.25,
      "definition": {
        "name": "discord_get_guild_info",
        "description": "Get details about one server: name, description, member/channel/role counts, boost tier, owner, and creation date. The owner field is a user ID. roleCount includes the @everyone role. channelCount also counts the threads in the bot's cache. With DISCORD_GUILD_MEMBERS=false, memberCount is not updated after the bot connects. Use discord_get_server_stats for a finer breakdown (humans vs bots, channel types).",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "memberCount": {
              "type": "number"
            },
            "channelCount": {
              "type": "number"
            },
            "roleCount": {
              "type": "number"
            },
            "boostLevel": {
              "type": "number"
            },
            "boostCount": {
              "type": [
                "number",
                "null"
              ]
            },
            "createdAt": {
              "type": "string"
            },
            "owner": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "description",
            "memberCount",
            "channelCount",
            "roleCount",
            "boostLevel",
            "boostCount",
            "createdAt",
            "owner"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get server info",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_channels",
      "title": "List channels",
      "toolset": "discovery",
      "risk": "read",
      "purpose": "List all channels in a server, grouped by their parent category and ordered by position.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_find_channel_by_name"
      ],
      "permissions": [],
      "bytes": 1036,
      "tokens": 259,
      "definition": {
        "name": "discord_list_channels",
        "description": "List all channels in a server, grouped by their parent category and ordered by position. Returns a JSON object keyed by category name. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out, and discord_find_channel_by_name reports how many; a visible channel whose category is hidden is listed under \"Hidden parent\". Read-only. Use discord_find_channel_by_name to locate a specific channel.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {},
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "type"
              ],
              "additionalProperties": false
            }
          }
        },
        "annotations": {
          "title": "List channels",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_find_channel_by_name",
      "title": "Find channel by name",
      "toolset": "discovery",
      "risk": "read",
      "purpose": "Find channels whose name contains a substring (case-insensitive).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_channels"
      ],
      "permissions": [],
      "bytes": 1475,
      "tokens": 368.75,
      "definition": {
        "name": "discord_find_channel_by_name",
        "description": "Find channels whose name contains a substring (case-insensitive). Returns { matches: [...], hiddenChannels } with the id, name and type of every match, active threads included. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out of matches and counted in hiddenChannels; when it is above 0, a note field says a channel missing from matches may still exist. The list is empty when nothing matches. Useful for resolving a channel_id when you only know the channel's name. Use discord_list_channels to see every channel grouped by category.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "name": {
              "type": "string",
              "description": "Case-insensitive substring to match against channel names."
            }
          },
          "required": [
            "guild_id",
            "name"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "matches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "hiddenChannels": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "note": {
              "type": "string"
            }
          },
          "required": [
            "matches",
            "hiddenChannels"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Find channel by name",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_read_messages",
      "title": "Read messages",
      "toolset": "messages",
      "risk": "read",
      "purpose": "Read messages from a text channel or thread, oldest-to-newest.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_search_messages",
        "discord_search_guild_messages",
        "discord_fetch_pinned_messages"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 3923,
      "tokens": 980.75,
      "definition": {
        "name": "discord_read_messages",
        "description": "Read messages from a text channel or thread, oldest-to-newest. Page backwards by re-calling with before set to the id of the oldest message you received, which walks a channel past the 100-message per-call cap. Requires the View Channel and Read Message History permissions; without Read Message History an empty result fails with an error naming the permission. Returns { messages: [...] } with id, author, content, timestamp, attachment count, pinned flag, and the text of any embeds. Use discord_search_messages or discord_search_guild_messages to filter by keyword, or discord_fetch_pinned_messages for pinned messages only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread to read from."
            },
            "limit": {
              "default": 20,
              "description": "How many messages to fetch per call (1–100). Default 20.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "before": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Return only messages older than this message ID (snowflake). Page backwards through history by passing the id of the oldest message from the previous call."
            },
            "after": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Return only messages newer than this message ID (snowflake). Page forwards by passing the id of the newest message from the previous call."
            },
            "around": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Return messages centered on this message ID (snowflake): Discord splits `limit` either side of it, and an even `limit` puts the extra message on the newer side. Use it to read outward from a known message, such as a discord_search_guild_messages hit."
            },
            "since": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              ],
              "description": "Return only messages posted after this instant, as an ISO 8601 date or a date-time with an explicit offset (e.g. \"2026-08-01\" or \"2026-08-01T09:00:00Z\"). Convenience form of `after`: the call yields the oldest `limit` messages after that instant, so page forwards with `after` set to the newest id received."
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "messages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "moreFields": {
                          "description": "Count of fields left out past the first 10. Absent when none were.",
                          "type": "number"
                        },
                        "footer": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "attachments": {
                    "type": "number"
                  },
                  "pinned": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "timestamp",
                  "attachments",
                  "pinned"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "guild_id",
            "messages"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Read messages",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_message",
      "title": "Send message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Send a plain-text message to a channel or thread.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_embed",
        "discord_reply_message"
      ],
      "permissions": [
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 788,
      "tokens": 197,
      "definition": {
        "name": "discord_send_message",
        "description": "Send a plain-text message to a channel or thread. For rich content (title, color, fields, images) use discord_send_embed; to attach a reply reference to an existing message use discord_reply_message. Requires the bot to have the Send Messages permission. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the target channel or thread."
            },
            "content": {
              "type": "string",
              "description": "Plain-text body of the message (max 2000 characters)."
            }
          },
          "required": [
            "channel_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_reply_message",
      "title": "Reply to message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Reply to a specific message, attaching a reply reference so clients show it as a threaded reply.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_message"
      ],
      "permissions": [
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 962,
      "tokens": 240.5,
      "definition": {
        "name": "discord_reply_message",
        "description": "Reply to a specific message, attaching a reply reference so clients show it as a threaded reply. Use discord_send_message for a standalone message with no reference. Requires the Send Messages and Read Message History permissions. Discord refuses some system messages as reply targets. Returns the new reply's message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to reply to."
            },
            "content": {
              "type": "string",
              "description": "Plain-text body of the reply (max 2000 characters)."
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Reply to message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_message",
      "title": "Edit message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Edit the text content of a message previously sent by this bot.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_embed"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1026,
      "tokens": 256.5,
      "definition": {
        "name": "discord_edit_message",
        "description": "Edit the text content of a message previously sent by this bot. Discord forbids editing other users' messages, so this fails for non-bot messages. Use discord_edit_embed for embed messages. Works in text channels and threads. Requires the View Channel and Read Message History permissions. Returns the edited message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to edit. Must be a message authored by this bot."
            },
            "content": {
              "type": "string",
              "description": "New plain-text content that fully replaces the existing content (max 2000 characters)."
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_add_reaction",
      "title": "Add reaction",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Add a single emoji reaction to a message as the bot.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_remove_reactions"
      ],
      "permissions": [
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 934,
      "tokens": 233.5,
      "definition": {
        "name": "discord_add_reaction",
        "description": "Add a single emoji reaction to a message as the bot. Requires the Read Message History permission to look the message up, plus Add Reactions when no one has reacted with that emoji yet. Use discord_remove_reactions to undo. Idempotent: re-adding the bot's existing reaction has no effect.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to react to."
            },
            "emoji": {
              "type": "string",
              "description": "Unicode emoji (e.g. '👍') or a custom emoji in 'name:id' format."
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "emoji"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Add reaction",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_channel_threads",
      "title": "List channel threads",
      "toolset": "messages",
      "risk": "read",
      "purpose": "List the threads in a text or announcement channel.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_forum_threads"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2508,
      "tokens": 627,
      "definition": {
        "name": "discord_list_channel_threads",
        "description": "List the threads in a text or announcement channel. Returns { threads: [...], hasMore, nextBefore }. The first call includes active threads plus the first page of archived ones; while hasMore is true pass nextBefore back as `before`. hasMore means that page came back full, so the last call can return nothing. messageCount excludes the starter message and deleted messages, and is inaccurate above 50 for threads created before July 1, 2022. Requires the View Channel and Read Message History permissions. Read-only. Use discord_list_forum_threads for a forum's posts.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the text or announcement channel to list threads from."
            },
            "limit": {
              "default": 100,
              "description": "Max archived threads per page (2–100). Default 100.",
              "type": "integer",
              "minimum": 2,
              "maximum": 100
            },
            "type": {
              "default": "public",
              "description": "Which archived threads to page through. Private requires the Manage Threads permission. Active threads are returned either way. Default public.",
              "type": "string",
              "enum": [
                "public",
                "private"
              ]
            },
            "before": {
              "description": "Pagination cursor: an ISO timestamp compared against when a thread was archived. Pass the previous response's nextBefore to fetch older archived threads. When set, active threads are omitted.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "threads": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "private": {
                    "type": "boolean"
                  },
                  "archived": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "locked": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "messageCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "createdAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "private",
                  "archived",
                  "locked",
                  "messageCount",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            },
            "hasMore": {
              "type": "boolean"
            },
            "nextBefore": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "threads",
            "hasMore",
            "nextBefore"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List channel threads",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_thread",
      "title": "Create thread",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Create a thread, either branching from an existing message (pass message_id) or as a standalone thread in a text channel (omit message_id).",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Create Public Threads",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1285,
      "tokens": 321.25,
      "definition": {
        "name": "discord_create_thread",
        "description": "Create a thread, either branching from an existing message (pass message_id) or as a standalone thread in a text channel (omit message_id). Standalone creation requires a parent text channel and fails if channel_id is itself a thread. Requires the Create Public Threads permission, plus Read Message History when message_id is set. Returns the new thread's ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the parent text channel. For a message-based thread, the channel containing message_id."
            },
            "name": {
              "type": "string",
              "description": "Name of the thread to create (max 100 characters)."
            },
            "message_id": {
              "description": "Optional. Message to branch the thread from. If omitted, a standalone thread is created in the channel.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "auto_archive_duration": {
              "default": 1440,
              "description": "Minutes of inactivity before auto-archiving: 60, 1440, 4320, or 10080. Default 1440 (24h).",
              "type": "number",
              "enum": [
                60,
                1440,
                4320,
                10080
              ]
            }
          },
          "required": [
            "channel_id",
            "name"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create thread",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_bulk_delete_messages",
      "title": "Bulk delete messages",
      "toolset": "messages",
      "risk": "destructive",
      "purpose": "Permanently delete multiple recent messages in one call.",
      "dryRunDefault": true,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Messages",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1143,
      "tokens": 285.75,
      "definition": {
        "name": "discord_bulk_delete_messages",
        "description": "Permanently delete multiple recent messages in one call. IRREVERSIBLE. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview, then re-call with dry_run:false to actually delete. Discord only allows bulk-deleting messages younger than 14 days; older ones are skipped. Requires the Manage Messages permission, and refuses to run without Read Message History. Returns the number deleted.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread to delete messages from."
            },
            "count": {
              "type": "integer",
              "minimum": 2,
              "maximum": 100,
              "description": "Number of recent messages to delete (2–100)."
            },
            "dry_run": {
              "default": true,
              "description": "If true (default), only reports how many would be deleted without deleting. Set false to actually delete.",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id",
            "count"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Bulk delete messages",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_embed",
      "title": "Send embed",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Send a single rich embed (title, description, color, fields, author, footer, images, timestamp).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_message",
        "discord_send_multiple_embeds"
      ],
      "permissions": [
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Embed Links",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2477,
      "tokens": 619.25,
      "definition": {
        "name": "discord_send_embed",
        "description": "Send a single rich embed (title, description, color, fields, author, footer, images, timestamp). Use discord_send_message for plain text, or discord_send_multiple_embeds to send several embeds at once. Requires the Send Messages and Embed Links permissions. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the target channel or thread."
            },
            "title": {
              "description": "Embed title shown in bold at the top.",
              "type": "string"
            },
            "url": {
              "description": "URL that makes the title clickable.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "description": {
              "description": "Main body text of the embed (supports Markdown).",
              "type": "string"
            },
            "color": {
              "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "fields": {
              "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Field heading."
                  },
                  "value": {
                    "type": "string",
                    "description": "Field body text."
                  },
                  "inline": {
                    "description": "If true, render this field side-by-side with adjacent inline fields.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "additionalProperties": false
              }
            },
            "author": {
              "description": "Author block shown at the top of the embed.",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Author display name."
                },
                "icon_url": {
                  "description": "Small icon shown next to the author name.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                },
                "url": {
                  "description": "URL the author name links to.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "thumbnail_url": {
              "description": "Small image shown in the top-right corner.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "footer": {
              "description": "Footer text shown at the bottom of the embed.",
              "type": "string"
            },
            "image_url": {
              "description": "Large image shown below the embed body.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "timestamp": {
              "description": "If true, stamp the embed with the current time.",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send embed",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_embed",
      "title": "Edit embed",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Replace the embed on a message previously sent by this bot.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Embed Links",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2706,
      "tokens": 676.5,
      "definition": {
        "name": "discord_edit_embed",
        "description": "Replace the embed on a message previously sent by this bot. Only this bot's messages can be edited. This is a full replace, not a merge: provided fields are applied and omitted fields are dropped from the embed. Requires the View Channel, Read Message History and Embed Links permissions. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to edit. Must be a message authored by this bot (an embed is added if it has none)."
            },
            "title": {
              "description": "Embed title shown in bold at the top.",
              "type": "string"
            },
            "url": {
              "description": "URL that makes the title clickable.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "description": {
              "description": "Main body text of the embed (supports Markdown).",
              "type": "string"
            },
            "color": {
              "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "fields": {
              "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Field heading."
                  },
                  "value": {
                    "type": "string",
                    "description": "Field body text."
                  },
                  "inline": {
                    "description": "If true, render this field side-by-side with adjacent inline fields.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "additionalProperties": false
              }
            },
            "author": {
              "description": "Author block shown at the top of the embed.",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Author display name."
                },
                "icon_url": {
                  "description": "Small icon shown next to the author name.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                },
                "url": {
                  "description": "URL the author name links to.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "thumbnail_url": {
              "description": "Small image shown in the top-right corner.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "footer": {
              "description": "Footer text shown at the bottom of the embed.",
              "type": "string"
            },
            "image_url": {
              "description": "Large image shown below the embed body.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "timestamp": {
              "description": "If true, stamp the embed with the current time.",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit embed",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_multiple_embeds",
      "title": "Send multiple embeds",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Send up to 10 embeds in a single message, with optional text above them.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_embed"
      ],
      "permissions": [
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Embed Links",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2675,
      "tokens": 668.75,
      "definition": {
        "name": "discord_send_multiple_embeds",
        "description": "Send up to 10 embeds in a single message, with optional text above them. Use discord_send_embed for a single embed. Requires the Send Messages and Embed Links permissions. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the target channel or thread."
            },
            "content": {
              "description": "Optional plain text shown above the embeds.",
              "type": "string"
            },
            "embeds": {
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "description": "Embed title shown in bold at the top.",
                    "type": "string"
                  },
                  "url": {
                    "description": "URL that makes the title clickable.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "description": {
                    "description": "Main body text of the embed (supports Markdown).",
                    "type": "string"
                  },
                  "color": {
                    "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
                    "type": "string",
                    "pattern": "^#[0-9A-Fa-f]{6}$"
                  },
                  "fields": {
                    "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Field heading."
                        },
                        "value": {
                          "type": "string",
                          "description": "Field body text."
                        },
                        "inline": {
                          "description": "If true, render this field side-by-side with adjacent inline fields.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "author": {
                    "description": "Author block shown at the top of the embed.",
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Author display name."
                      },
                      "icon_url": {
                        "description": "Small icon shown next to the author name.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      },
                      "url": {
                        "description": "URL the author name links to.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "thumbnail_url": {
                    "description": "Small image shown in the top-right corner.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "footer": {
                    "description": "Footer text shown at the bottom of the embed.",
                    "type": "string"
                  },
                  "image_url": {
                    "description": "Large image shown below the embed body.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "timestamp": {
                    "description": "If true, stamp the embed with the current time.",
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "description": "Array of embed objects to send (max 10)."
            }
          },
          "required": [
            "channel_id",
            "embeds"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send multiple embeds",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_message",
      "title": "Delete message",
      "toolset": "messages",
      "risk": "destructive",
      "purpose": "Permanently delete one specific message.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_bulk_delete_messages"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Messages",
          "condition": "when deleting another user's message also",
          "alternativeTo": null
        }
      ],
      "bytes": 1055,
      "tokens": 263.75,
      "definition": {
        "name": "discord_delete_message",
        "description": "Permanently delete one specific message. IRREVERSIBLE. Requires the View Channel and Read Message History permissions to find the message. The bot can then delete its own messages; deleting another user's message also requires the Manage Messages permission. Use discord_bulk_delete_messages to remove many at once. Discord does not record a reason for a single message delete in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to delete."
            },
            "reason": {
              "description": "Optional. Not recorded: Discord keeps no audit log reason for a single message delete.",
              "type": "string"
            }
          },
          "required": [
            "channel_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete message",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_pin_message",
      "title": "Pin or unpin message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Pin or unpin a message in a channel, controlled by the pin flag.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Pin Messages",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 985,
      "tokens": 246.25,
      "definition": {
        "name": "discord_pin_message",
        "description": "Pin or unpin a message in a channel, controlled by the pin flag. Requires the Pin Messages and Read Message History permissions (Pin Messages is a dedicated permission since early 2026, separate from Manage Messages). A channel holds at most 250 pins. Idempotent: pinning an already-pinned message (or unpinning an unpinned one) has no additional effect.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to pin or unpin."
            },
            "pin": {
              "type": "boolean",
              "description": "true to pin the message, false to unpin it."
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "pin"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Pin or unpin message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_search_messages",
      "title": "Search messages",
      "toolset": "messages",
      "risk": "read",
      "purpose": "Keyword search over a channel's recent messages using case-insensitive substring matching.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_read_messages",
        "discord_search_guild_messages"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2228,
      "tokens": 557,
      "definition": {
        "name": "discord_search_messages",
        "description": "Keyword search over a channel's recent messages using case-insensitive substring matching. Scans only up to the last 100 messages; it does not search full history. Returns { matches: [...] } with id, author, content, timestamp, and the text of any embeds. Matching checks message content only, so a word that appears only in an embed is not found. Requires the View Channel and Read Message History permissions; without Read Message History an empty scan fails with an error naming the permission. Use discord_read_messages to fetch recent messages without filtering. To search full history, in one channel or the whole server, use discord_search_guild_messages.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread to search."
            },
            "keyword": {
              "type": "string",
              "description": "Case-insensitive substring to match within message content."
            },
            "limit": {
              "default": 100,
              "description": "Max number of recent messages to scan (1–100). Default 100.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "channel_id",
            "keyword"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "matches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "moreFields": {
                          "description": "Count of fields left out past the first 10. Absent when none were.",
                          "type": "number"
                        },
                        "footer": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "timestamp"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "matches"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Search messages",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_search_guild_messages",
      "title": "Search guild messages",
      "toolset": "messages",
      "risk": "read",
      "purpose": "Search for messages across all channels in a guild using Discord's native search API.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_search_messages",
        "discord_read_messages"
      ],
      "permissions": [
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2460,
      "tokens": 615,
      "definition": {
        "name": "discord_search_guild_messages",
        "description": "Search for messages across all channels in a guild using Discord's native search API. Returns at most 25 messages matching the query with channel context, with no way to page past them. Age-restricted (NSFW) channels are left out. Requires the Read Message History permission and the Message Content privileged intent, enabled in the Developer Portal. While Discord is still building the server's search index, the call fails and says how many seconds to wait. Use discord_search_messages for a substring scan of one channel's last 100 messages. To read the messages around a hit, use discord_read_messages with around.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "query": {
              "type": "string",
              "description": "Search query (case-insensitive)."
            },
            "channel_id": {
              "description": "Optional. Restrict search to this channel ID.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "author_id": {
              "description": "Optional. Only show messages from this user ID.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "limit": {
              "default": 25,
              "description": "Max messages to return (1–25). Default 25.",
              "type": "integer",
              "minimum": 1,
              "maximum": 25
            }
          },
          "required": [
            "guild_id",
            "query"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "matches": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "moreFields": {
                          "description": "Count of fields left out past the first 10. Absent when none were.",
                          "type": "number"
                        },
                        "footer": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "channel_id": {
                    "type": "string"
                  },
                  "channel_name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "timestamp",
                  "channel_id",
                  "channel_name"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "matches"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Search guild messages",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_crosspost_message",
      "title": "Crosspost message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Publish (crosspost) a message from an Announcement channel to every server that follows it.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Messages",
          "condition": "for messages authored by others",
          "alternativeTo": null
        }
      ],
      "bytes": 874,
      "tokens": 218.5,
      "definition": {
        "name": "discord_crosspost_message",
        "description": "Publish (crosspost) a message from an Announcement channel to every server that follows it. Only works in announcement channels on a message that has not already been published. Requires the Read Message History and Send Messages permissions (and Manage Messages for messages authored by others). Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the announcement channel containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to publish to followers."
            }
          },
          "required": [
            "channel_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Crosspost message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_remove_reactions",
      "title": "Remove reactions",
      "toolset": "messages",
      "risk": "destructive",
      "purpose": "Remove reactions from a message.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_add_reaction"
      ],
      "permissions": [
        {
          "name": "Manage Messages",
          "condition": "when removing all reactions, every reaction of one emoji, or another user's reaction",
          "alternativeTo": null
        }
      ],
      "bytes": 1235,
      "tokens": 308.75,
      "definition": {
        "name": "discord_remove_reactions",
        "description": "Remove reactions from a message. With no emoji: removes ALL reactions. With emoji only: removes every reaction of that emoji. With emoji and user_id: removes that one user's reaction. user_id without emoji is rejected. Removing all reactions, every reaction of one emoji, or another user's reaction requires the Manage Messages permission. Use discord_add_reaction to add.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to remove reactions from."
            },
            "emoji": {
              "description": "Unicode emoji or custom emoji 'name:id'. Omit to remove ALL reactions on the message.",
              "type": "string",
              "minLength": 1
            },
            "user_id": {
              "description": "Remove only this user's reaction for the given emoji. Requires emoji: the call is rejected without it.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "channel_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Remove reactions",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_reactions",
      "title": "Get reactions",
      "toolset": "messages",
      "risk": "read",
      "purpose": "List the users who reacted to a message with a specific emoji.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1366,
      "tokens": 341.5,
      "definition": {
        "name": "discord_get_reactions",
        "description": "List the users who reacted to a message with a specific emoji. Returns { reactions: [...] } with id, username, bot flag. Returns 25 users by default and at most 100, with no cursor for the rest. Super reactions are not listed. Fails when no one reacted with that emoji. Requires the View Channel and Read Message History permissions.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to inspect."
            },
            "emoji": {
              "type": "string",
              "description": "Unicode emoji or custom emoji 'name:id' to list reactors for."
            },
            "limit": {
              "default": 25,
              "description": "Max users to return (1–100). Default 25.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "emoji"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "reactions": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "bot": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "username",
                  "bot"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "reactions"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get reactions",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_message_attachments",
      "title": "Get message attachments",
      "toolset": "messages",
      "risk": "read",
      "purpose": "List the file attachments of a message.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_read_messages"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2074,
      "tokens": 518.5,
      "definition": {
        "name": "discord_get_message_attachments",
        "description": "List the file attachments of a message. Returns { attachments: [...] } with id, filename, title (the original name when Discord strips non-ASCII from filename), url, proxyUrl, contentType, size in bytes, width, height, alt-text description, voice-message duration and waveform, spoiler flag. Discord signs CDN urls with a 24-hour expiry and does not re-sign on every fetch; re-call this tool if a stored url has expired. Requires the View Channel and Read Message History permissions. Without the Message Content privileged intent, enabled in the Developer Portal, Discord returns no attachments for other users' messages unless they mention the bot. A forwarded message's files sit in its snapshot and are not listed. Read-only. Use discord_read_messages to find messages with attachments.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message whose attachments to list."
            }
          },
          "required": [
            "channel_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "attachments": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "filename": {
                    "type": "string"
                  },
                  "contentType": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "size": {
                    "type": "number"
                  },
                  "url": {
                    "type": "string"
                  },
                  "proxyUrl": {
                    "type": "string"
                  },
                  "width": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "height": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "duration": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "waveform": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "spoiler": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "filename",
                  "contentType",
                  "size",
                  "url",
                  "proxyUrl",
                  "width",
                  "height",
                  "description",
                  "title",
                  "duration",
                  "waveform",
                  "spoiler"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "attachments"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get message attachments",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_fetch_pinned_messages",
      "title": "Fetch pinned messages",
      "toolset": "messages",
      "risk": "read",
      "purpose": "List a channel's pinned messages, most recently pinned first.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_pin_message",
        "discord_read_messages"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2748,
      "tokens": 687,
      "definition": {
        "name": "discord_fetch_pinned_messages",
        "description": "List a channel's pinned messages, most recently pinned first. Returns { messages: [...], hasMore, nextBefore } with id, author, content, timestamp, pinnedAt, and the text of any embeds. Discord serves at most 50 pins per call, so when hasMore is true pass nextBefore back as `before` to fetch the next page. Requires the View Channel and Read Message History permissions; without Read Message History an empty result fails with an error naming the permission. Use discord_pin_message to change which messages are pinned, or discord_read_messages to read the whole channel.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread to list pins from."
            },
            "limit": {
              "default": 50,
              "description": "Max pins per page (1–50). Default 50.",
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "before": {
              "description": "Pagination cursor: an ISO timestamp compared against when a message was pinned, not when it was sent. Pass the previous response's nextBefore to fetch older pins.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "messages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "moreFields": {
                          "description": "Count of fields left out past the first 10. Absent when none were.",
                          "type": "number"
                        },
                        "footer": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "pinnedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "timestamp",
                  "pinnedAt"
                ],
                "additionalProperties": false
              }
            },
            "hasMore": {
              "type": "boolean"
            },
            "nextBefore": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "guild_id",
            "messages",
            "hasMore",
            "nextBefore"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Fetch pinned messages",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_forward_message",
      "title": "Forward message",
      "toolset": "messages",
      "risk": "write",
      "purpose": "Forward an existing message to another channel using Discord's native forward, which links back to the original message.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_message"
      ],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1315,
      "tokens": 328.75,
      "definition": {
        "name": "discord_forward_message",
        "description": "Forward an existing message to another channel using Discord's native forward, which links back to the original message. The forward carries a snapshot of the content, embeds and attachments, without the original author. Works across text channels and threads. Discord forwards only regular messages, replies and command responses, not polls, and refuses a message whose content the bot cannot read (error 160014). Use discord_send_message to compose new content instead. Requires the View Channel and Read Message History permissions in the source channel and Send Messages in the target channel. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel or thread containing the source message."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the message to forward."
            },
            "target_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the destination channel or thread."
            }
          },
          "required": [
            "channel_id",
            "message_id",
            "target_channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Forward message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_channel",
      "title": "Create channel",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Create a text channel, voice channel, or category in a server.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_create_forum_channel"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1074,
      "tokens": 268.5,
      "definition": {
        "name": "discord_create_channel",
        "description": "Create a text channel, voice channel, or category in a server. Requires the Manage Channels permission. For forum channels use discord_create_forum_channel instead. Returns the new channel's name and ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake) to create the channel in."
            },
            "name": {
              "type": "string",
              "description": "Name of the new channel (max 100 characters)."
            },
            "type": {
              "description": "Channel type to create. Defaults to 'text'.",
              "type": "string",
              "enum": [
                "text",
                "voice",
                "category"
              ]
            },
            "topic": {
              "description": "Optional channel topic/description. Applies to text channels only.",
              "type": "string"
            },
            "category_id": {
              "description": "Optional category (snowflake) to nest the new channel under.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "guild_id",
            "name"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_channel",
      "title": "Delete channel",
      "toolset": "channels",
      "risk": "destructive",
      "purpose": "Permanently delete a channel and all of its messages.",
      "dryRunDefault": true,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1119,
      "tokens": 279.75,
      "definition": {
        "name": "discord_delete_channel",
        "description": "Permanently delete a channel and all of its messages. IRREVERSIBLE. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview, then re-call with dry_run:false to actually delete. Deleting a category keeps its channels, which leave the category. A DM channel ID only closes the DM, which is reversible. Requires the Manage Channels permission, or Manage Threads for a thread. An optional reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to delete."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            },
            "dry_run": {
              "default": true,
              "description": "If true (default), only reports which channel would be deleted without deleting it. Set false to actually delete.",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete channel",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_channel",
      "title": "Edit channel",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Update a channel's name, topic, slowmode, or NSFW flag.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1166,
      "tokens": 291.5,
      "definition": {
        "name": "discord_edit_channel",
        "description": "Update a channel's name, topic, slowmode, or NSFW flag. Only provided fields change. This tool sends topic and slowmode for plain text channels only; on every other type, announcement channels included, it ignores them without an error. Requires the Manage Channels permission. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to edit."
            },
            "name": {
              "description": "New channel name (max 100 characters).",
              "type": "string"
            },
            "topic": {
              "description": "New topic/description (text channels only, not announcement).",
              "type": "string"
            },
            "slowmode": {
              "description": "Per-user message cooldown in seconds, 0–21600. 0 disables slowmode (text channels only, not announcement).",
              "type": "integer",
              "minimum": 0,
              "maximum": 21600
            },
            "nsfw": {
              "description": "Mark (true) or unmark (false) the channel as age-restricted (NSFW).",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_move_channel",
      "title": "Move channel",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Move a channel into a category, or remove it from its category when category_id is omitted.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_set_channel_position"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 755,
      "tokens": 188.75,
      "definition": {
        "name": "discord_move_channel",
        "description": "Move a channel into a category, or remove it from its category when category_id is omitted. Requires the Manage Channels permission. Use discord_set_channel_position to reorder within a category. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to move."
            },
            "category_id": {
              "description": "Target category (snowflake). Omit to move the channel out of any category.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Move channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_clone_channel",
      "title": "Clone channel",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Create a copy of a channel, including its name, topic, and permission overwrites (but not its messages).",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 851,
      "tokens": 212.75,
      "definition": {
        "name": "discord_clone_channel",
        "description": "Create a copy of a channel, including its name, topic, and permission overwrites (but not its messages). Requires the Manage Channels permission, and View Channel on the source: the tool refuses a source the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns the cloned channel's name and ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to clone."
            },
            "new_name": {
              "description": "Optional name for the clone. Defaults to the source channel's name.",
              "type": "string"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Clone channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_channel_position",
      "title": "Set channel position",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Set a channel's display order among the channels of its kind in its category.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_move_channel"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1013,
      "tokens": 253.25,
      "definition": {
        "name": "discord_set_channel_position",
        "description": "Set a channel's display order among the channels of its kind in its category. Text, announcement, forum and media channels sort together, voice and stage channels together, and categories among categories. A position equal to or above the number of channels in that group leaves the order unchanged. Use discord_move_channel to change which category it belongs to. Requires the Manage Channels permission. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to reposition."
            },
            "position": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991,
              "description": "Zero-based position among the channels of its kind in the category (0 = top)."
            }
          },
          "required": [
            "channel_id",
            "position"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set channel position",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_follow_announcement_channel",
      "title": "Follow announcement channel",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Subscribe a target channel to an announcement (news) channel, so the source's published messages are reposted into the target.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Webhooks",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 864,
      "tokens": 216,
      "definition": {
        "name": "discord_follow_announcement_channel",
        "description": "Subscribe a target channel to an announcement (news) channel, so the source's published messages are reposted into the target. The source must be an announcement channel. Requires the Manage Webhooks permission in the target. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "source_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the announcement channel to follow."
            },
            "target_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel that will receive published messages."
            }
          },
          "required": [
            "source_channel_id",
            "target_channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Follow announcement channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_lock_channel_permissions",
      "title": "Sync channel permissions",
      "toolset": "channels",
      "risk": "write",
      "purpose": "Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions').",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 830,
      "tokens": 207.5,
      "definition": {
        "name": "discord_lock_channel_permissions",
        "description": "Reset a channel's permission overwrites to exactly match its parent category (Discord's 'sync permissions'). The channel must be inside a category. Requires the Manage Channels and Manage Roles permissions, and View Channel on the category: the tool refuses a category the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to sync with its parent category."
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Sync channel permissions",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_channel_permissions",
      "title": "Get channel permissions",
      "toolset": "permissions",
      "risk": "read",
      "purpose": "List every permission overwrite on a channel, per role and per member, with the allowed and denied permission flags for each.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_audit_permissions"
      ],
      "permissions": [],
      "bytes": 1166,
      "tokens": 291.5,
      "definition": {
        "name": "discord_get_channel_permissions",
        "description": "List every permission overwrite on a channel, per role and per member, with the allowed and denied permission flags for each. Read-only. Refuses a channel that Discord hides from the bot behind the placeholder name ___hidden___: Discord shows a placeholder in place of its real overwrites, so grant the bot View Channel on it first. Use discord_audit_permissions for a server-wide report across all channels.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to inspect."
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "overwrites": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "allow": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "deny": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "id",
                  "type",
                  "allow",
                  "deny"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "overwrites"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get channel permissions",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_role_permission",
      "title": "Set role channel permission",
      "toolset": "permissions",
      "risk": "write",
      "purpose": "Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_set_member_permission"
      ],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1657,
      "tokens": 414.25,
      "definition": {
        "name": "discord_set_role_permission",
        "description": "Add or update a per-channel permission overwrite for a role, allowing and/or denying specific permissions. Merges with the role's existing overwrite (does not reset it). Denying View Channel to @everyone on a channel also hides it from the bot, unless the bot has Administrator or a View Channel allow overwrite there, on its own member or on one of its roles. Grant that allow first, for example with discord_set_member_permission, then deny. Requires the Manage Roles permission. Use discord_set_member_permission to target a single member instead.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to set the overwrite on."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to grant/deny permissions for."
            },
            "allow": {
              "description": "Permission flag names to allow, e.g. ['SendMessages','ViewChannel'] (or the same array JSON-encoded as a string). Uses Discord PermissionsBitField flag names.",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "deny": {
              "description": "Permission flag names to deny, e.g. ['SendMessages'] (or the same array JSON-encoded as a string).",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "channel_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set role channel permission",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_member_permission",
      "title": "Set member channel permission",
      "toolset": "permissions",
      "risk": "write",
      "purpose": "Add or update a per-channel permission overwrite for a single member, allowing and/or denying specific permissions.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_set_role_permission"
      ],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1330,
      "tokens": 332.5,
      "definition": {
        "name": "discord_set_member_permission",
        "description": "Add or update a per-channel permission overwrite for a single member, allowing and/or denying specific permissions. Merges with the member's existing overwrite. Requires the Manage Roles permission. Use discord_set_role_permission to target a whole role instead.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to set the overwrite on."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the member to grant/deny permissions for."
            },
            "allow": {
              "description": "Permission flag names to allow, e.g. ['ViewChannel'] (or the same array JSON-encoded as a string). Uses Discord PermissionsBitField flag names.",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "deny": {
              "description": "Permission flag names to deny (array, or JSON-encoded array string).",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "channel_id",
            "user_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set member channel permission",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_reset_channel_permissions",
      "title": "Reset channel permissions",
      "toolset": "permissions",
      "risk": "destructive",
      "purpose": "Remove ALL permission overwrites on a channel, so only role/server-level permissions apply.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_lock_channel_permissions"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 822,
      "tokens": 205.5,
      "definition": {
        "name": "discord_reset_channel_permissions",
        "description": "Remove ALL permission overwrites on a channel, so only role/server-level permissions apply. Does NOT re-sync with the category; use discord_lock_channel_permissions for that. IRREVERSIBLE: the cleared overwrites cannot be recovered. Requires the Manage Channels and Manage Roles permissions.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel whose overwrites will be cleared."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Reset channel permissions",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_copy_permissions",
      "title": "Copy channel permissions",
      "toolset": "permissions",
      "risk": "destructive",
      "purpose": "Replace the target channel's permission overwrites with a copy of the source channel's.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_clone_channel",
        "discord_reset_channel_permissions"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1205,
      "tokens": 301.25,
      "definition": {
        "name": "discord_copy_permissions",
        "description": "Replace the target channel's permission overwrites with a copy of the source channel's. The target's existing overwrites are overwritten. Requires the Manage Channels and Manage Roles permissions, and View Channel on the source: the tool refuses a source the bot cannot view, whose overwrites Discord may replace with a single @everyone View Channel deny. Returns a confirmation. To create a new channel with the same overwrites, use discord_clone_channel; to remove them all, use discord_reset_channel_permissions.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "source_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to copy overwrites from."
            },
            "target_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel whose overwrites will be replaced."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "source_channel_id",
            "target_channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Copy channel permissions",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_audit_permissions",
      "title": "Audit permissions",
      "toolset": "permissions",
      "risk": "read",
      "purpose": "Generate a server-wide permission report: for every channel that has overwrites, lists each role/member and their allowed/denied permissions (entity names resolved).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_channel_permissions"
      ],
      "permissions": [],
      "bytes": 1561,
      "tokens": 390.25,
      "definition": {
        "name": "discord_audit_permissions",
        "description": "Generate a server-wide permission report: for every channel that has overwrites, lists each role/member and their allowed/denied permissions (entity names resolved). Read-only. Returns { channels: [...], hiddenChannels } with channel, channelId, overwrites. Channels that Discord hides from the bot behind the placeholder name ___hidden___ are left out and counted in hiddenChannels: Discord shows a placeholder in place of their real overwrites. Use discord_get_channel_permissions for a single channel.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "channels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string"
                  },
                  "channelId": {
                    "type": "string"
                  },
                  "overwrites": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "entity": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "allow": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "deny": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "entity",
                        "type",
                        "allow",
                        "deny"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "channel",
                  "channelId",
                  "overwrites"
                ],
                "additionalProperties": false
              }
            },
            "hiddenChannels": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "channels",
            "hiddenChannels"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Audit permissions",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_members",
      "title": "List members",
      "toolset": "members",
      "risk": "read",
      "purpose": "List members of a server with their roles, ordered by user ID.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_search_members",
        "discord_get_member_info"
      ],
      "permissions": [],
      "bytes": 1588,
      "tokens": 397,
      "definition": {
        "name": "discord_list_members",
        "description": "List members of a server with their roles, ordered by user ID. Returns { members: [...], nextCursor }. A page holds up to 1000 members; if nextCursor is non-null, pass it back as `after` to fetch the next page. Use discord_search_members to find specific members by name, or discord_get_member_info for one member's full details. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "limit": {
              "default": 50,
              "description": "How many members per page (1–1000). Default 50.",
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            },
            "after": {
              "description": "Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "members": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "nickname": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "joinedAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "username",
                  "nickname",
                  "roles",
                  "joinedAt"
                ],
                "additionalProperties": false
              }
            },
            "nextCursor": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "members",
            "nextCursor"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List members",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_member_info",
      "title": "Get member info",
      "toolset": "members",
      "risk": "read",
      "purpose": "Get full details for one server member: roles, effective permissions, account/join dates, bot flag, and current timeout status.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_search_members",
        "discord_list_members"
      ],
      "permissions": [],
      "bytes": 1647,
      "tokens": 411.75,
      "definition": {
        "name": "discord_get_member_info",
        "description": "Get full details for one server member: roles, effective permissions, account/join dates, bot flag, and current timeout status. Permissions come from the member's roles, server-wide: channel overwrites are not applied. The owner and Administrators list every flag. The permissions list ignores an active timeout, during which Discord keeps only View Channel and Read Message History. timedOutUntil can be a past date once a timeout has expired. To find a member by name use discord_search_members; to page through members use discord_list_members.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member."
            }
          },
          "required": [
            "guild_id",
            "user_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "username": {
              "type": "string"
            },
            "nickname": {
              "type": [
                "string",
                "null"
              ]
            },
            "roles": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              }
            },
            "permissions": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "joinedAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "createdAt": {
              "type": "string"
            },
            "bot": {
              "type": "boolean"
            },
            "timedOutUntil": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "username",
            "nickname",
            "roles",
            "permissions",
            "joinedAt",
            "createdAt",
            "bot",
            "timedOutUntil"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get member info",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_kick_member",
      "title": "Kick member",
      "toolset": "members",
      "risk": "destructive",
      "purpose": "Remove a member from the server.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_ban_member"
      ],
      "permissions": [
        {
          "name": "Kick Members",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 865,
      "tokens": 216.25,
      "definition": {
        "name": "discord_kick_member",
        "description": "Remove a member from the server. They can rejoin with a new invite (unlike a ban). Requires the Kick Members permission, and the bot's top role must be higher than the target's. Use discord_ban_member to block re-entry. The reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member to kick."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Kick member",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_ban_member",
      "title": "Ban member",
      "toolset": "members",
      "risk": "destructive",
      "purpose": "Ban a user from the server, blocking re-entry until unbanned.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_unban_member",
        "discord_kick_member"
      ],
      "permissions": [
        {
          "name": "Ban Members",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1107,
      "tokens": 276.75,
      "definition": {
        "name": "discord_ban_member",
        "description": "Ban a user from the server, blocking re-entry until unbanned. Optionally bulk-deletes their recent messages. Requires the Ban Members permission, and the bot's top role must outrank the target's. Use discord_unban_member to reverse, or discord_kick_member for a non-permanent removal. The reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the user to ban."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            },
            "delete_message_days": {
              "default": 0,
              "description": "Also delete the user's messages from the last N days (0–7). Default 0 (delete nothing).",
              "type": "integer",
              "minimum": 0,
              "maximum": 7
            }
          },
          "required": [
            "guild_id",
            "user_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Ban member",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_unban_member",
      "title": "Unban member",
      "toolset": "members",
      "risk": "write",
      "purpose": "Lift a ban so the user may rejoin via a new invite.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_ban_member"
      ],
      "permissions": [
        {
          "name": "Ban Members",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 771,
      "tokens": 192.75,
      "definition": {
        "name": "discord_unban_member",
        "description": "Lift a ban so the user may rejoin via a new invite. Requires the Ban Members permission. Reverses discord_ban_member. The reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the banned user to unban."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Unban member",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_timeout_member",
      "title": "Timeout member",
      "toolset": "members",
      "risk": "write",
      "purpose": "Mute a member for a set duration (Discord 'timeout'): they cannot send messages, react, or speak until it expires.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Moderate Members",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1134,
      "tokens": 283.5,
      "definition": {
        "name": "discord_timeout_member",
        "description": "Mute a member for a set duration (Discord 'timeout'): they cannot send messages, react, or speak until it expires. Pass duration_minutes = 0 to remove an active timeout early. Max 28 days (40320 minutes). Requires the Moderate Members permission. Discord refuses to time out the server owner or a member with Administrator.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member to time out."
            },
            "duration_minutes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 40320,
              "description": "Timeout length in minutes (0–40320, i.e. up to 28 days). Use 0 to clear an existing timeout."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id",
            "duration_minutes"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Timeout member",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_search_members",
      "title": "Search members",
      "toolset": "members",
      "risk": "read",
      "purpose": "Find server members whose username or nickname starts with a query string (prefix match).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_members"
      ],
      "permissions": [],
      "bytes": 1284,
      "tokens": 321,
      "definition": {
        "name": "discord_search_members",
        "description": "Find server members whose username or nickname starts with a query string (prefix match). Returns { members: [...] } with id, username, nickname, roles. Use discord_list_members to page through everyone. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "query": {
              "type": "string",
              "description": "Prefix to match against usernames and nicknames."
            },
            "limit": {
              "default": 25,
              "description": "Max members to return (1–100). Default 25.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "guild_id",
            "query"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "members": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "nickname": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "roles": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "username",
                  "nickname",
                  "roles"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "members"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Search members",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_nickname",
      "title": "Set nickname",
      "toolset": "members",
      "risk": "write",
      "purpose": "Set or clear a member's server nickname.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Nicknames",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Change Nickname",
          "condition": "for the bot itself",
          "alternativeTo": "Manage Nicknames"
        }
      ],
      "bytes": 1045,
      "tokens": 261.25,
      "definition": {
        "name": "discord_set_nickname",
        "description": "Set or clear a member's server nickname. Pass null (or the string 'null') to clear it. Requires the Manage Nicknames permission (or Change Nickname for the bot itself). To rename another member, their highest role must be below the bot's highest role. The reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member."
            },
            "nickname": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 32
                },
                {
                  "type": "null"
                }
              ],
              "description": "New nickname (max 32 characters), or null to clear it."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id",
            "nickname"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set nickname",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_bans",
      "title": "List bans",
      "toolset": "members",
      "risk": "read",
      "purpose": "List the users banned from the server, with their ban reasons.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 1283,
      "tokens": 320.75,
      "definition": {
        "name": "discord_list_bans",
        "description": "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.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "limit": {
              "default": 1000,
              "description": "Max bans per page (1–1000). Default 1000.",
              "type": "integer",
              "minimum": 1,
              "maximum": 1000
            },
            "after": {
              "description": "Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "bans": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "user_id",
                  "username",
                  "reason"
                ],
                "additionalProperties": false
              }
            },
            "nextCursor": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "bans",
            "nextCursor"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List bans",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_bulk_ban",
      "title": "Bulk ban",
      "toolset": "members",
      "risk": "destructive",
      "purpose": "Ban many users in a single call, intended for raid mitigation.",
      "dryRunDefault": true,
      "crossReferences": [
        "discord_ban_member"
      ],
      "permissions": [
        {
          "name": "Ban Members",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Server",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2245,
      "tokens": 561.25,
      "definition": {
        "name": "discord_bulk_ban",
        "description": "Ban many users in a single call, intended for raid mitigation. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the user IDs a real call would send to Discord, unchecked, then re-call with dry_run:false to actually ban them. Requires both the Ban Members and Manage Server permissions. Returns { dry_run, would_ban } for a preview, and { dry_run, banned, failed } with the user IDs after a real call; failed also lists users who were already banned. Discord rejects the whole call with an error if no user could be banned. Use discord_ban_member for a single ban with finer control.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_ids": {
              "minItems": 1,
              "maxItems": 200,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{17,20}$"
              },
              "description": "Array of user IDs (snowflakes) to ban (max 200 per call, a Discord API limit)."
            },
            "delete_message_seconds": {
              "default": 0,
              "description": "Also delete each user's messages from the last N seconds (0–604800, i.e. up to 7 days). Default 0.",
              "type": "integer",
              "minimum": 0,
              "maximum": 604800
            },
            "dry_run": {
              "default": true,
              "description": "If true (default), returns the user IDs a real call would send, unchecked, and bans no one. Set false to actually ban.",
              "type": "boolean"
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_ids"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "dry_run": {
              "type": "boolean",
              "description": "true for a preview: no one was banned."
            },
            "would_ban": {
              "description": "Dry run only: the user IDs a real call would send to Discord, unchecked.",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "banned": {
              "description": "User IDs banned by this call.",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "failed": {
              "description": "User IDs not banned, including users who were already banned.",
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "dry_run"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Bulk ban",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_prune_members",
      "title": "Prune inactive members",
      "toolset": "members",
      "risk": "destructive",
      "purpose": "Remove members who have been inactive (no roles, not seen) for a number of days.",
      "dryRunDefault": true,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Server",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Kick Members",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1457,
      "tokens": 364.25,
      "definition": {
        "name": "discord_prune_members",
        "description": "Remove members who have been inactive (no roles, not seen) for a number of days. SAFE BY DEFAULT: dry_run is true unless explicitly set to false, so call it first to preview the count, then re-call with dry_run:false to actually remove them. Removal is irreversible (members must rejoin). Requires the Manage Server and Kick Members permissions (Administrator when the server has the PRUNE_REQUIRES_ADMIN feature).",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "days": {
              "type": "integer",
              "minimum": 1,
              "maximum": 30,
              "description": "Inactivity threshold in days (1–30)."
            },
            "roles": {
              "description": "Optional role IDs (snowflakes) to include; by default only members with no roles are counted. A member with roles is counted only when every role they hold is in this list.",
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{17,20}$"
              }
            },
            "dry_run": {
              "default": true,
              "description": "If true (default), only returns the count that would be pruned without removing anyone. Set false to actually prune.",
              "type": "boolean"
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "days"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Prune inactive members",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_roles",
      "title": "List roles",
      "toolset": "roles",
      "risk": "read",
      "purpose": "List all roles in a server (excluding @everyone), highest-first, with color, position, member count, and permissions.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_role_members"
      ],
      "permissions": [],
      "bytes": 1086,
      "tokens": 271.5,
      "definition": {
        "name": "discord_list_roles",
        "description": "List all roles in a server (excluding @everyone), highest-first, with color, position, member count, and permissions. Read-only. Returns { roles: [...] }. Use discord_get_role_members to see who holds a given role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "roles": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "color": {
                    "type": "string"
                  },
                  "position": {
                    "type": "number"
                  },
                  "memberCount": {
                    "type": "number"
                  },
                  "permissions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "hoist": {
                    "type": "boolean"
                  },
                  "mentionable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "color",
                  "position",
                  "memberCount",
                  "permissions",
                  "hoist",
                  "mentionable"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "roles"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List roles",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_role",
      "title": "Create role",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Create a new role in a server.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_add_role",
        "discord_edit_role"
      ],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1281,
      "tokens": 320.25,
      "definition": {
        "name": "discord_create_role",
        "description": "Create a new role in a server. Requires the Manage Roles permission; the new role is placed below the bot's highest role. Use discord_add_role to then assign it to members. Returns the new role's name and ID. To change an existing role, use discord_edit_role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "name": {
              "type": "string",
              "description": "Name of the new role (max 100 characters)."
            },
            "color": {
              "description": "Role color as a hex string, e.g. '#FF5733'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "hoist": {
              "description": "If true, display members with this role separately in the member list.",
              "type": "boolean"
            },
            "mentionable": {
              "description": "If true, anyone can @mention this role.",
              "type": "boolean"
            },
            "permissions": {
              "description": "Server-wide permission flag names to grant, e.g. ['SendMessages','ViewChannel']. Uses Discord PermissionsBitField flag names.",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            }
          },
          "required": [
            "guild_id",
            "name"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create role",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_role",
      "title": "Edit role",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Update an existing role's name, color, permissions, hoist, or mentionable flag.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1470,
      "tokens": 367.5,
      "definition": {
        "name": "discord_edit_role",
        "description": "Update an existing role's name, color, permissions, hoist, or mentionable flag. Only provided fields change; passing permissions REPLACES the role's full permission set, and passing color sets a single solid color, removing any gradient or holographic colors. Requires the Manage Roles permission, and the role must be below the bot's highest role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to edit."
            },
            "name": {
              "description": "New role name (max 100 characters).",
              "type": "string"
            },
            "color": {
              "description": "New role color as a hex string, e.g. '#FF5733'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "hoist": {
              "description": "If true, display members with this role separately in the member list.",
              "type": "boolean"
            },
            "mentionable": {
              "description": "If true, anyone can @mention this role.",
              "type": "boolean"
            },
            "permissions": {
              "description": "Permission flag names. Providing this REPLACES the role's entire permission set. Uses Discord PermissionsBitField flag names.",
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "string"
                }
              ]
            }
          },
          "required": [
            "guild_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit role",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_role",
      "title": "Delete role",
      "toolset": "roles",
      "risk": "destructive",
      "purpose": "Permanently delete a role from the server; it is automatically removed from every member who held it.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 796,
      "tokens": 199,
      "definition": {
        "name": "discord_delete_role",
        "description": "Permanently delete a role from the server; it is automatically removed from every member who held it. IRREVERSIBLE. Requires the Manage Roles permission, and the role must be below the bot's highest role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to delete."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete role",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_add_role",
      "title": "Add role to member",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Assign an existing role to a member.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_remove_role"
      ],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 963,
      "tokens": 240.75,
      "definition": {
        "name": "discord_add_role",
        "description": "Assign an existing role to a member. Requires the Manage Roles permission, and the role must be below the bot's highest role. Idempotent: assigning a role the member already has has no effect. Use discord_remove_role to undo.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member to give the role to."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to assign."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Add role to member",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_remove_role",
      "title": "Remove role from member",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Remove a role from a member.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_add_role"
      ],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 961,
      "tokens": 240.25,
      "definition": {
        "name": "discord_remove_role",
        "description": "Remove a role from a member. Requires the Manage Roles permission, and the role must be below the bot's highest role. Idempotent: removing a role the member doesn't have has no effect. Reverses discord_add_role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the member to remove the role from."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to remove."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "guild_id",
            "user_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Remove role from member",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_role_members",
      "title": "Get role members",
      "toolset": "roles",
      "risk": "read",
      "purpose": "List members who currently hold a specific role, scanning up to 20,000 members.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_roles"
      ],
      "permissions": [],
      "bytes": 1087,
      "tokens": 271.75,
      "definition": {
        "name": "discord_get_role_members",
        "description": "List members who currently hold a specific role, scanning up to 20,000 members. Returns { members: [...], truncated }; check `truncated` on very large servers. Read-only. Use discord_list_roles to discover role IDs first.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to list holders of."
            }
          },
          "required": [
            "guild_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "members": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "nickname": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "username",
                  "nickname"
                ],
                "additionalProperties": false
              }
            },
            "truncated": {
              "type": "boolean"
            },
            "note": {
              "type": "string"
            }
          },
          "required": [
            "members",
            "truncated"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get role members",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_role_position",
      "title": "Set role position",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 972,
      "tokens": 243,
      "definition": {
        "name": "discord_set_role_position",
        "description": "Move a role up or down in the server's role hierarchy, which determines permission precedence and member-list ordering. Higher position = higher in the list. Requires the Manage Roles permission, and the target position must be below the bot's highest role.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to reposition."
            },
            "position": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991,
              "description": "New hierarchy position (1 = lowest, just above @everyone, which sits at 0). Higher numbers rank higher."
            }
          },
          "required": [
            "guild_id",
            "role_id",
            "position"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set role position",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_role_icon",
      "title": "Set role icon",
      "toolset": "roles",
      "risk": "write",
      "purpose": "Set or clear a role's icon, either a custom image or a unicode emoji.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Roles",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1074,
      "tokens": 268.5,
      "definition": {
        "name": "discord_set_role_icon",
        "description": "Set or clear a role's icon, either a custom image or a unicode emoji. Requires the server to be Boost Level 2+ (the ROLE_ICONS feature) and the Manage Roles permission. Pass null to either field to remove that icon. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "role_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the role to set the icon on."
            },
            "icon": {
              "description": "Image URL for the role icon, or null to remove it.",
              "anyOf": [
                {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri",
                      "pattern": "^https?://"
                    },
                    {
                      "type": "string",
                      "const": "null"
                    }
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "unicode_emoji": {
              "description": "Unicode emoji to use as the role icon, or null to remove it.",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "guild_id",
            "role_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set role icon",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_audit_log",
      "title": "Get audit log",
      "toolset": "moderation",
      "risk": "read",
      "purpose": "Fetch the server's audit log, the record of administrative actions (bans, kicks, role/channel changes, etc.) with who performed them and when.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "View Audit Log",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1722,
      "tokens": 430.5,
      "definition": {
        "name": "discord_get_audit_log",
        "description": "Fetch the server's audit log, the record of administrative actions (bans, kicks, role/channel changes, etc.) with who performed them and when. Requires the View Audit Log permission. Returns { entries: [...] } with id, action, executor, target, reason, createdAt. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "limit": {
              "default": 25,
              "description": "How many recent entries to fetch (1–100). Default 25.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "action_type": {
              "description": "Optional Discord AuditLogEvent numeric ID to filter by (e.g. 22 = MemberBanAdd). Accepts event IDs newer than the bundled enum. Omit for all action types.",
              "anyOf": [
                {
                  "type": "number",
                  "enum": [
                    1,
                    10,
                    11,
                    12,
                    13,
                    14,
                    15,
                    20,
                    21,
                    22,
                    23,
                    24,
                    25,
                    26,
                    27,
                    28,
                    30,
                    31,
                    32,
                    40,
                    41,
                    42,
                    50,
                    51,
                    52,
                    60,
                    61,
                    62,
                    72,
                    73,
                    74,
                    75,
                    80,
                    81,
                    82,
                    83,
                    84,
                    85,
                    90,
                    91,
                    92,
                    100,
                    101,
                    102,
                    110,
                    111,
                    112,
                    121,
                    130,
                    131,
                    132,
                    140,
                    141,
                    142,
                    143,
                    144,
                    145,
                    146,
                    150,
                    151,
                    163,
                    164,
                    165,
                    166,
                    167,
                    190,
                    191,
                    192,
                    193
                  ]
                },
                {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                }
              ]
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "entries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "action": {
                    "type": "number"
                  },
                  "executor": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "target": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "action",
                  "executor",
                  "target",
                  "reason",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "entries"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get audit log",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_membership_screening",
      "title": "Get membership screening",
      "toolset": "screening",
      "risk": "read",
      "purpose": "Fetch the server's membership screening form, the rules/questions new members must accept before gaining access.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 1295,
      "tokens": 323.75,
      "definition": {
        "name": "discord_get_membership_screening",
        "description": "Fetch the server's membership screening form, the rules/questions new members must accept before gaining access. Requires the server to have the Community feature enabled. Read-only. Returns { version, description, form_fields } with each field's type, label, values, required flag and description; any other key Discord returns on a field is dropped.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "form_fields": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "field_type": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "values": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "field_type",
                  "label",
                  "values",
                  "required",
                  "description"
                ],
                "additionalProperties": false
              }
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "version",
            "form_fields",
            "description"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get membership screening",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_update_membership_screening",
      "title": "Update membership screening",
      "toolset": "screening",
      "risk": "write",
      "purpose": "Update the server's membership screening form: set the welcome description and the rules new members must agree to.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_membership_screening"
      ],
      "permissions": [
        {
          "name": "Manage Server",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1446,
      "tokens": 361.5,
      "definition": {
        "name": "discord_update_membership_screening",
        "description": "Update the server's membership screening form: set the welcome description and the rules new members must agree to. Only provided fields change. Passing form_fields replaces every existing field with TERMS rule blocks, which deletes any question field. Read the form first with discord_get_membership_screening. Requires the Community feature and the Manage Server permission. Returns the updated form.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "description": {
              "description": "Welcome message shown at the top of the screening form.",
              "type": "string"
            },
            "form_fields": {
              "description": "Rules/agreement blocks new members must accept. Replaces the existing fields when provided.",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "description": "Title of this rules block."
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Individual rule lines shown under the label."
                  },
                  "required": {
                    "description": "Whether the member must agree to this block. Default true.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "label",
                  "values"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Update membership screening",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_server_stats",
      "title": "Get server stats",
      "toolset": "stats",
      "risk": "read",
      "purpose": "Get a snapshot of server metrics: total members (humans vs cached bots), channel breakdown (text/voice/category), role count, boost tier and count, and creation date.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_guild_info"
      ],
      "permissions": [],
      "bytes": 1704,
      "tokens": 426,
      "definition": {
        "name": "discord_get_server_stats",
        "description": "Get a snapshot of server metrics: total members (humans vs cached bots), channel breakdown (text/voice/category), role count, boost tier and count, and creation date. Note: bots are counted from the member cache only, so botsInCache is a lower bound and humans (total minus cached bots) an upper bound. The roles count excludes @everyone. In channels, total covers every channel type plus the threads in the bot's cache, while text counts only text channels (not announcement), voice only voice channels (not stage), and categories only categories. With DISCORD_GUILD_MEMBERS=false, totalMembers is not updated after the bot connects. For the server's owner and description, use discord_get_guild_info.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "totalMembers": {
              "type": "number"
            },
            "humans": {
              "type": "number"
            },
            "botsInCache": {
              "type": "number"
            },
            "channels": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "number"
                },
                "text": {
                  "type": "number"
                },
                "voice": {
                  "type": "number"
                },
                "categories": {
                  "type": "number"
                }
              },
              "required": [
                "total",
                "text",
                "voice",
                "categories"
              ],
              "additionalProperties": false
            },
            "roles": {
              "type": "number"
            },
            "boostLevel": {
              "type": "number"
            },
            "boostCount": {
              "type": "number"
            },
            "createdAt": {
              "type": "string"
            }
          },
          "required": [
            "name",
            "totalMembers",
            "humans",
            "botsInCache",
            "channels",
            "roles",
            "boostLevel",
            "boostCount",
            "createdAt"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get server stats",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_forum_channels",
      "title": "List forum channels",
      "toolset": "forums",
      "risk": "read",
      "purpose": "List the forum channels in a server (id, name, topic, parent category).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_forum_tags",
        "discord_list_forum_threads"
      ],
      "permissions": [],
      "bytes": 972,
      "tokens": 243,
      "definition": {
        "name": "discord_get_forum_channels",
        "description": "List the forum channels in a server (id, name, topic, parent category). From November 16, 2026, Discord leaves out forums the bot cannot view. Read-only. Use discord_get_forum_tags to see a forum's available tags, or discord_list_forum_threads for its posts.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "channels": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "topic": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "parentId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "topic",
                  "parentId"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "channels"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List forum channels",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_forum_channel",
      "title": "Create forum channel",
      "toolset": "forums",
      "risk": "write",
      "purpose": "Create a new forum channel in a server.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_create_channel"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 968,
      "tokens": 242,
      "definition": {
        "name": "discord_create_forum_channel",
        "description": "Create a new forum channel in a server. A forum holds posts (threads) rather than a linear message feed. Requires the Manage Channels permission. Use discord_create_channel for text/voice channels instead. Returns the new channel's name and ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "name": {
              "type": "string",
              "description": "Name of the new forum channel (max 100 characters)."
            },
            "topic": {
              "description": "Guidelines/topic text shown at the top of the forum.",
              "type": "string"
            },
            "category_id": {
              "description": "Optional category (snowflake) to nest the forum under.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "guild_id",
            "name"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create forum channel",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_forum_post",
      "title": "Create forum post",
      "toolset": "forums",
      "risk": "write",
      "purpose": "Create a new post (a thread with a starter message) in a forum channel.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_reply_to_forum"
      ],
      "permissions": [
        {
          "name": "Send Messages",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1054,
      "tokens": 263.5,
      "definition": {
        "name": "discord_create_forum_post",
        "description": "Create a new post (a thread with a starter message) in a forum channel. Requires the Send Messages permission (Discord ignores Create Public Threads for forum posts). Use discord_reply_to_forum to add follow-up messages. Returns the new post's name and thread ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "forum_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum channel to post in."
            },
            "title": {
              "type": "string",
              "description": "Title of the post, used as the thread name (max 100 characters)."
            },
            "content": {
              "type": "string",
              "description": "Body of the post's starter message (max 2000 characters)."
            },
            "applied_tags": {
              "description": "Optional tag IDs to apply. Get valid IDs from discord_get_forum_tags.",
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "forum_channel_id",
            "title",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create forum post",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_forum_post",
      "title": "Get forum post",
      "toolset": "forums",
      "risk": "read",
      "purpose": "Get a forum post's details (title, archived/locked state, applied tags, message count) plus its recent messages, oldest-to-newest.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "View Channel",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Read Message History",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2135,
      "tokens": 533.75,
      "definition": {
        "name": "discord_get_forum_post",
        "description": "Get a forum post's details (title, archived/locked state, applied tags, message count) plus its recent messages, oldest-to-newest. Read-only. Pass the post's thread_id. Requires the View Channel and Read Message History permissions on the forum; without Read Message History an empty message list fails with an error naming the permission. Returns a JSON object.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "thread_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum post (thread)."
            },
            "limit": {
              "default": 20,
              "description": "How many recent messages to include (1–100). Default 20.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "thread_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "archived": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "locked": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "messageCount": {
              "type": [
                "number",
                "null"
              ]
            },
            "appliedTags": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "createdAt": {
              "type": [
                "string",
                "null"
              ]
            },
            "messages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "timestamp": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "value"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "moreFields": {
                          "description": "Count of fields left out past the first 10. Absent when none were.",
                          "type": "number"
                        },
                        "footer": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "timestamp"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "id",
            "name",
            "archived",
            "locked",
            "messageCount",
            "appliedTags",
            "createdAt",
            "messages"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get forum post",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_forum_threads",
      "title": "List forum threads",
      "toolset": "forums",
      "risk": "read",
      "purpose": "List posts in a forum channel.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_forum_post",
        "discord_list_channel_threads"
      ],
      "permissions": [],
      "bytes": 2238,
      "tokens": 559.5,
      "definition": {
        "name": "discord_list_forum_threads",
        "description": "List posts in a forum channel. Returns { threads: [...], hasMore, nextBefore }. The first call (no `before`) includes all active posts plus the first page of archived posts; archived posts are paginated, so if hasMore is true pass nextBefore back as `before` to fetch older archived posts. messageCount excludes the starter message and deleted messages, and is inaccurate above 50 for threads created before July 1, 2022. Use discord_get_forum_post to read one post's messages. For threads in a text or announcement channel, use discord_list_channel_threads.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "forum_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum channel to list posts from."
            },
            "limit": {
              "default": 100,
              "description": "Max archived posts per page (2–100). Default 100.",
              "type": "integer",
              "minimum": 2,
              "maximum": 100
            },
            "before": {
              "description": "Pagination cursor: an ISO timestamp. Pass the previous response's nextBefore to fetch older archived posts. When set, active posts are omitted.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            }
          },
          "required": [
            "forum_channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "threads": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "archived": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "locked": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "messageCount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "appliedTags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "createdAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "archived",
                  "locked",
                  "messageCount",
                  "appliedTags",
                  "createdAt"
                ],
                "additionalProperties": false
              }
            },
            "hasMore": {
              "type": "boolean"
            },
            "nextBefore": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "threads",
            "hasMore",
            "nextBefore"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List forum threads",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_reply_to_forum",
      "title": "Reply to forum post",
      "toolset": "forums",
      "risk": "write",
      "purpose": "Post a follow-up message inside an existing forum post (thread).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_create_forum_post"
      ],
      "permissions": [
        {
          "name": "Send Messages in Threads",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 766,
      "tokens": 191.5,
      "definition": {
        "name": "discord_reply_to_forum",
        "description": "Post a follow-up message inside an existing forum post (thread). Requires the Send Messages in Threads permission (shown as 'Send Messages in Posts' for forums). Use discord_create_forum_post to start a new post instead. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "thread_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum post (thread) to reply in."
            },
            "content": {
              "type": "string",
              "description": "Plain-text body of the reply (max 2000 characters)."
            }
          },
          "required": [
            "thread_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Reply to forum post",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_forum_post",
      "title": "Delete forum post",
      "toolset": "forums",
      "risk": "destructive",
      "purpose": "Permanently delete a forum post (thread) and all its messages.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_update_forum_post"
      ],
      "permissions": [
        {
          "name": "Manage Threads",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 613,
      "tokens": 153.25,
      "definition": {
        "name": "discord_delete_forum_post",
        "description": "Permanently delete a forum post (thread) and all its messages. IRREVERSIBLE. To merely close it without deleting, use discord_update_forum_post with archived:true. Requires the Manage Threads permission.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "thread_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum post (thread) to delete."
            }
          },
          "required": [
            "thread_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete forum post",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_forum_tags",
      "title": "Get forum tags",
      "toolset": "forums",
      "risk": "read",
      "purpose": "List the tags available on a forum channel (id, name, emoji, emoji_id, moderated flag).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_create_forum_post",
        "discord_update_forum_post",
        "discord_set_forum_tags"
      ],
      "permissions": [],
      "bytes": 1200,
      "tokens": 300,
      "definition": {
        "name": "discord_get_forum_tags",
        "description": "List the tags available on a forum channel (id, name, emoji, emoji_id, moderated flag). Use these IDs with discord_create_forum_post or discord_update_forum_post; manage the tag set with discord_set_forum_tags. The emoji field holds a unicode emoji, or null when the tag has none or uses a custom server emoji. Fails when the channel is not a forum.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "forum_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum channel to read tags from."
            }
          },
          "required": [
            "forum_channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "tags": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "emoji": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "emoji_id": {
                    "description": "ID of the tag's custom server emoji, or null when it has none.",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "moderated": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "emoji",
                  "emoji_id",
                  "moderated"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "tags"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get forum tags",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_set_forum_tags",
      "title": "Set forum tags",
      "toolset": "forums",
      "risk": "destructive",
      "purpose": "Replace the full set of available tags on a forum channel with the provided list.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1809,
      "tokens": 452.25,
      "definition": {
        "name": "discord_set_forum_tags",
        "description": "Replace the full set of available tags on a forum channel with the provided list. Include every tag you want to keep: a listed tag whose name matches an existing tag (case-insensitive) keeps its ID and stays on posts, and keeps its emoji and moderated flag unless the input sets them. A tag left out is deleted from the forum, and posts that carried it keep its ID in applied_tags. Requires the Manage Channels permission. Returns a confirmation naming the tags created, deleted and changed, with the fields that changed.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "forum_channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum channel to set tags on."
            },
            "tags": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Tag label (max 20 characters)."
                  },
                  "emoji_name": {
                    "description": "Unicode emoji shown on the tag. On an existing tag, omit to keep its emoji; null removes it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "emoji_id": {
                    "description": "ID (snowflake) of a custom server emoji shown on the tag, instead of emoji_name. On an existing tag, omit to keep its emoji; null removes it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{17,20}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "moderated": {
                    "description": "If true, only members with Manage Threads can apply this tag. On an existing tag, omit to keep its value; a new tag defaults to false.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "description": "Complete list of tags to set (replaces all existing tags)."
            }
          },
          "required": [
            "forum_channel_id",
            "tags"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Set forum tags",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_update_forum_post",
      "title": "Update forum post",
      "toolset": "forums",
      "risk": "write",
      "purpose": "Update a forum post's title, archived/locked state, or applied tags.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_set_forum_tags"
      ],
      "permissions": [
        {
          "name": "Manage Threads",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1264,
      "tokens": 316,
      "definition": {
        "name": "discord_update_forum_post",
        "description": "Update a forum post's title, archived/locked state, or applied tags. Only provided fields change; passing applied_tags replaces the post's tags. Set archived:true to close a post without deleting it; archiving a pinned post unpins it. Requires the Manage Threads permission. To change which tags the forum offers, use discord_set_forum_tags; this tool picks among the forum's existing tags for one post.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "thread_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the forum post (thread) to update."
            },
            "title": {
              "description": "New title/thread name (max 100 characters).",
              "type": "string"
            },
            "archived": {
              "description": "true to archive (close) the post, false to reopen it.",
              "type": "boolean"
            },
            "locked": {
              "description": "true to lock the post so only moderators can reply.",
              "type": "boolean"
            },
            "applied_tags": {
              "description": "Tag IDs to apply; replaces the post's current tags. Get valid IDs from discord_get_forum_tags.",
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "thread_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Update forum post",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_webhook",
      "title": "Create webhook",
      "toolset": "webhooks",
      "risk": "write",
      "purpose": "Create a webhook on a channel and return its ID and token.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_webhook_message"
      ],
      "permissions": [
        {
          "name": "Manage Webhooks",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1046,
      "tokens": 261.5,
      "definition": {
        "name": "discord_create_webhook",
        "description": "Create a webhook on a channel and return its ID and token. SECURITY: the returned token grants anyone the ability to post as this webhook without authentication; treat it as a secret. Requires the Manage Webhooks permission. Use the returned id+token with discord_send_webhook_message. On a forum or media channel, discord_send_webhook_message cannot post through the webhook, since Discord then requires a thread.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to attach the webhook to."
            },
            "name": {
              "type": "string",
              "description": "Display name for the webhook (max 80 characters)."
            },
            "avatar": {
              "description": "Optional avatar image URL for the webhook.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            }
          },
          "required": [
            "channel_id",
            "name"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create webhook",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_webhook_message",
      "title": "Send webhook message",
      "toolset": "webhooks",
      "risk": "write",
      "purpose": "Send a message through a webhook using its ID and token (no bot permissions needed; the token authorizes the send).",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 3181,
      "tokens": 795.25,
      "definition": {
        "name": "discord_send_webhook_message",
        "description": "Send a message through a webhook using its ID and token (no bot permissions needed; the token authorizes the send). Supports per-message username/avatar overrides and up to 10 embeds. At least one of content or embeds is required. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook to send through."
            },
            "webhook_token": {
              "type": "string",
              "description": "Secret token of the webhook (from discord_create_webhook or discord_list_webhooks)."
            },
            "content": {
              "description": "Plain-text body of the message (max 2000 characters). Optional if embeds are provided.",
              "type": "string"
            },
            "username": {
              "description": "Override the webhook's default display name for this message.",
              "type": "string"
            },
            "avatar_url": {
              "description": "Override the webhook's default avatar for this message.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "embeds": {
              "description": "Up to 10 embed objects to attach to the webhook message.",
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "description": "Embed title shown in bold at the top.",
                    "type": "string"
                  },
                  "url": {
                    "description": "URL that makes the title clickable.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "description": {
                    "description": "Main body text of the embed (supports Markdown).",
                    "type": "string"
                  },
                  "color": {
                    "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
                    "type": "string",
                    "pattern": "^#[0-9A-Fa-f]{6}$"
                  },
                  "fields": {
                    "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Field heading."
                        },
                        "value": {
                          "type": "string",
                          "description": "Field body text."
                        },
                        "inline": {
                          "description": "If true, render this field side-by-side with adjacent inline fields.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "author": {
                    "description": "Author block shown at the top of the embed.",
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Author display name."
                      },
                      "icon_url": {
                        "description": "Small icon shown next to the author name.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      },
                      "url": {
                        "description": "URL the author name links to.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "thumbnail_url": {
                    "description": "Small image shown in the top-right corner.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "footer": {
                    "description": "Footer text shown at the bottom of the embed.",
                    "type": "string"
                  },
                  "image_url": {
                    "description": "Large image shown below the embed body.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "timestamp": {
                    "description": "If true, stamp the embed with the current time.",
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": [
            "webhook_id",
            "webhook_token"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send webhook message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_webhook",
      "title": "Edit webhook",
      "toolset": "webhooks",
      "risk": "write",
      "purpose": "Update a webhook's name, avatar, or the channel it posts to.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Webhooks",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 880,
      "tokens": 220,
      "definition": {
        "name": "discord_edit_webhook",
        "description": "Update a webhook's name, avatar, or the channel it posts to. Only provided fields change. Requires the Manage Webhooks permission. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook to edit."
            },
            "name": {
              "description": "New display name for the webhook (max 80 characters).",
              "type": "string"
            },
            "avatar": {
              "description": "New avatar image URL for the webhook.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "channel_id": {
              "description": "ID (snowflake) of a channel to move the webhook to.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "webhook_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit webhook",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_webhook",
      "title": "Delete webhook",
      "toolset": "webhooks",
      "risk": "destructive",
      "purpose": "Permanently delete a webhook by its ID, invalidating its token.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_delete_webhook_message",
        "discord_list_webhooks"
      ],
      "permissions": [
        {
          "name": "Manage Webhooks",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 688,
      "tokens": 172,
      "definition": {
        "name": "discord_delete_webhook",
        "description": "Permanently delete a webhook by its ID, invalidating its token. IRREVERSIBLE: any integrations using the old token will stop working. Requires the Manage Webhooks permission. To remove one message the webhook sent, use discord_delete_webhook_message instead; discord_list_webhooks finds the ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook to delete."
            }
          },
          "required": [
            "webhook_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete webhook",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_webhooks",
      "title": "List webhooks",
      "toolset": "webhooks",
      "risk": "read",
      "purpose": "List the webhooks in a single channel or across a whole server (id, name, channel, token when visible, creator).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_webhook_message",
        "discord_create_webhook"
      ],
      "permissions": [
        {
          "name": "Manage Webhooks",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1361,
      "tokens": 340.25,
      "definition": {
        "name": "discord_list_webhooks",
        "description": "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.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "description": "ID (snowflake) of a channel to list webhooks for. Takes precedence over guild_id.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "guild_id": {
              "description": "Discord server (guild) ID (snowflake) to list all webhooks for. Ignored when channel_id is given.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "webhooks": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel_id": {
                    "type": "string"
                  },
                  "token": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "creator": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "channel_id",
                  "token",
                  "creator"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "webhooks"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List webhooks",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_webhook_message",
      "title": "Edit webhook message",
      "toolset": "webhooks",
      "risk": "write",
      "purpose": "Edit a message previously sent through a webhook, using the webhook's ID and token.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_message",
        "discord_edit_embed"
      ],
      "permissions": [],
      "bytes": 3000,
      "tokens": 750,
      "definition": {
        "name": "discord_edit_webhook_message",
        "description": "Edit a message previously sent through a webhook, using the webhook's ID and token. Replaces the provided fields. No bot permission is needed: the token authorizes the edit. For a message the bot sent itself, use discord_edit_message or discord_edit_embed. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook that sent the message."
            },
            "webhook_token": {
              "type": "string",
              "description": "Secret token of the webhook."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the webhook message to edit."
            },
            "content": {
              "description": "New plain-text content for the message (max 2000 characters).",
              "type": "string"
            },
            "embeds": {
              "description": "Up to 10 embed objects to attach to the webhook message.",
              "maxItems": 10,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "description": "Embed title shown in bold at the top.",
                    "type": "string"
                  },
                  "url": {
                    "description": "URL that makes the title clickable.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "description": {
                    "description": "Main body text of the embed (supports Markdown).",
                    "type": "string"
                  },
                  "color": {
                    "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
                    "type": "string",
                    "pattern": "^#[0-9A-Fa-f]{6}$"
                  },
                  "fields": {
                    "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Field heading."
                        },
                        "value": {
                          "type": "string",
                          "description": "Field body text."
                        },
                        "inline": {
                          "description": "If true, render this field side-by-side with adjacent inline fields.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "author": {
                    "description": "Author block shown at the top of the embed.",
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "Author display name."
                      },
                      "icon_url": {
                        "description": "Small icon shown next to the author name.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      },
                      "url": {
                        "description": "URL the author name links to.",
                        "type": "string",
                        "format": "uri",
                        "pattern": "^https?://"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "thumbnail_url": {
                    "description": "Small image shown in the top-right corner.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "footer": {
                    "description": "Footer text shown at the bottom of the embed.",
                    "type": "string"
                  },
                  "image_url": {
                    "description": "Large image shown below the embed body.",
                    "type": "string",
                    "format": "uri",
                    "pattern": "^https?://"
                  },
                  "timestamp": {
                    "description": "If true, stamp the embed with the current time.",
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": [
            "webhook_id",
            "webhook_token",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit webhook message",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_webhook_message",
      "title": "Delete webhook message",
      "toolset": "webhooks",
      "risk": "destructive",
      "purpose": "Permanently delete a message that was sent through a webhook, using the webhook's ID and token.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_delete_webhook"
      ],
      "permissions": [],
      "bytes": 866,
      "tokens": 216.5,
      "definition": {
        "name": "discord_delete_webhook_message",
        "description": "Permanently delete a message that was sent through a webhook, using the webhook's ID and token. IRREVERSIBLE. No bot permission is needed: the token authorizes the call. To delete the webhook itself, use discord_delete_webhook.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook that sent the message."
            },
            "webhook_token": {
              "type": "string",
              "description": "Secret token of the webhook."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the webhook message to delete."
            }
          },
          "required": [
            "webhook_id",
            "webhook_token",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete webhook message",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_fetch_webhook_message",
      "title": "Fetch webhook message",
      "toolset": "webhooks",
      "risk": "read",
      "purpose": "Fetch a single message sent through a webhook (id, content, embed count, timestamp), using the webhook's ID and token.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 989,
      "tokens": 247.25,
      "definition": {
        "name": "discord_fetch_webhook_message",
        "description": "Fetch a single message sent through a webhook (id, content, embed count, timestamp), using the webhook's ID and token. Read-only. Requires the original webhook token.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "webhook_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the webhook that sent the message."
            },
            "webhook_token": {
              "type": "string",
              "description": "Secret token of the webhook."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the webhook message to fetch."
            }
          },
          "required": [
            "webhook_id",
            "webhook_token",
            "message_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "content": {
              "type": "string"
            },
            "embeds": {
              "type": "number"
            },
            "timestamp": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "content",
            "embeds",
            "timestamp"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Fetch webhook message",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_scheduled_events",
      "title": "List scheduled events",
      "toolset": "scheduled_events",
      "risk": "read",
      "purpose": "List all scheduled events in a server (id, name, status, type, time, location, interested count).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_get_scheduled_event"
      ],
      "permissions": [],
      "bytes": 1345,
      "tokens": 336.25,
      "definition": {
        "name": "discord_list_scheduled_events",
        "description": "List all scheduled events in a server (id, name, status, type, time, location, interested count). Read-only. Use discord_get_scheduled_event for one event's full details.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "events": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "status": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "entity_type": {
                    "type": [
                      "string",
                      "number"
                    ]
                  },
                  "channel_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "location": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "scheduled_start_time": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "scheduled_end_time": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "creator_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "user_count": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "image": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "status",
                  "entity_type",
                  "channel_id",
                  "location",
                  "scheduled_start_time",
                  "scheduled_end_time",
                  "creator_id",
                  "user_count",
                  "image"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "events"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List scheduled events",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_scheduled_event",
      "title": "Get scheduled event",
      "toolset": "scheduled_events",
      "risk": "read",
      "purpose": "Get full details for one scheduled event: name, description, status, type, channel/location, start/end times, creator, and interested-user count.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_scheduled_events",
        "discord_get_event_subscribers"
      ],
      "permissions": [],
      "bytes": 1540,
      "tokens": 385,
      "definition": {
        "name": "discord_get_scheduled_event",
        "description": "Get full details for one scheduled event: name, description, status, type, channel/location, start/end times, creator, and interested-user count. Status is SCHEDULED, ACTIVE, COMPLETED or CANCELED, and entity_type is VOICE, STAGE_INSTANCE or EXTERNAL. Find the event_id with discord_list_scheduled_events; list the interested users with discord_get_event_subscribers.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "event_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the scheduled event."
            }
          },
          "required": [
            "guild_id",
            "event_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "status": {
              "type": [
                "string",
                "number"
              ]
            },
            "entity_type": {
              "type": [
                "string",
                "number"
              ]
            },
            "channel_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "location": {
              "type": [
                "string",
                "null"
              ]
            },
            "scheduled_start_time": {
              "type": [
                "string",
                "null"
              ]
            },
            "scheduled_end_time": {
              "type": [
                "string",
                "null"
              ]
            },
            "creator_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "user_count": {
              "type": [
                "number",
                "null"
              ]
            },
            "image": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id",
            "name",
            "description",
            "status",
            "entity_type",
            "channel_id",
            "location",
            "scheduled_start_time",
            "scheduled_end_time",
            "creator_id",
            "user_count",
            "image"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get scheduled event",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_scheduled_event",
      "title": "Create scheduled event",
      "toolset": "scheduled_events",
      "risk": "write",
      "purpose": "Create a scheduled event.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_scheduled_event"
      ],
      "permissions": [
        {
          "name": "Create Events",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2641,
      "tokens": 660.25,
      "definition": {
        "name": "discord_create_scheduled_event",
        "description": "Create a scheduled event. For 'VOICE'/'STAGE_INSTANCE' events provide channel_id; for 'EXTERNAL' events provide location AND scheduled_end_time. Requires the Create Events permission (Manage Events alone no longer suffices), plus View Channel and Connect in the channel for VOICE events, or Manage Channels, Mute Members and Move Members for STAGE_INSTANCE events. Returns the new event's name and ID. To change, start or cancel an existing event, use discord_edit_scheduled_event.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "name": {
              "type": "string",
              "description": "Event name (max 100 characters)."
            },
            "description": {
              "description": "Optional event description (max 1000 characters).",
              "type": "string"
            },
            "entity_type": {
              "type": "string",
              "enum": [
                "VOICE",
                "STAGE_INSTANCE",
                "EXTERNAL"
              ],
              "description": "Where the event happens: 'VOICE' or 'STAGE_INSTANCE' (needs channel_id), or 'EXTERNAL' (needs location + scheduled_end_time)."
            },
            "scheduled_start_time": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "description": "Event start as an ISO 8601 datetime, e.g. '2026-06-01T20:00:00Z'. Must be in the future."
            },
            "scheduled_end_time": {
              "description": "Event end as an ISO 8601 datetime. Required for EXTERNAL events.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "channel_id": {
              "description": "Voice or stage channel ID (snowflake). Required for VOICE/STAGE_INSTANCE events.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "location": {
              "description": "Free-text location (e.g. a URL or place). Required for EXTERNAL events.",
              "type": "string"
            },
            "image": {
              "description": "Optional cover image URL.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            }
          },
          "required": [
            "guild_id",
            "name",
            "entity_type",
            "scheduled_start_time"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create scheduled event",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_scheduled_event",
      "title": "Edit scheduled event",
      "toolset": "scheduled_events",
      "risk": "write",
      "purpose": "Update a scheduled event; only provided fields change.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Events",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 2603,
      "tokens": 650.75,
      "definition": {
        "name": "discord_edit_scheduled_event",
        "description": "Update a scheduled event; only provided fields change. Use the status field to start ('ACTIVE'), end ('COMPLETED'), or cancel ('CANCELED') an event; Discord only allows certain status transitions. Discord rejects a location on VOICE and STAGE_INSTANCE events. An ACTIVE voice or stage event ends on its own a few minutes after its channel empties. Requires the Manage Events permission, or Create Events for an event the bot created, plus the same channel permissions as creating it.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "event_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the event to edit."
            },
            "name": {
              "description": "New event name (max 100 characters).",
              "type": "string"
            },
            "description": {
              "description": "New event description (max 1000 characters).",
              "type": "string"
            },
            "scheduled_start_time": {
              "description": "New start time as an ISO 8601 datetime.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "scheduled_end_time": {
              "description": "New end time as an ISO 8601 datetime.",
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "channel_id": {
              "description": "New voice/stage channel ID (snowflake) for VOICE/STAGE_INSTANCE events.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "location": {
              "description": "New free-text location for EXTERNAL events.",
              "type": "string"
            },
            "image": {
              "description": "New cover image URL.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "status": {
              "description": "Change event status. Allowed transitions only: SCHEDULED→ACTIVE→COMPLETED, or SCHEDULED→CANCELED (no transition back to SCHEDULED exists).",
              "type": "string",
              "enum": [
                "ACTIVE",
                "COMPLETED",
                "CANCELED"
              ]
            }
          },
          "required": [
            "guild_id",
            "event_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit scheduled event",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_scheduled_event",
      "title": "Delete scheduled event",
      "toolset": "scheduled_events",
      "risk": "destructive",
      "purpose": "Permanently delete a scheduled event.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_scheduled_event"
      ],
      "permissions": [
        {
          "name": "Manage Events",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 819,
      "tokens": 204.75,
      "definition": {
        "name": "discord_delete_scheduled_event",
        "description": "Permanently delete a scheduled event. IRREVERSIBLE. To cancel an event while keeping a record, use discord_edit_scheduled_event with status:'CANCELED' instead. Requires the Manage Events permission, or Create Events for an event the bot created, plus the same channel permissions as creating it.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "event_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the event to delete."
            }
          },
          "required": [
            "guild_id",
            "event_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete scheduled event",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_event_subscribers",
      "title": "Get event subscribers",
      "toolset": "scheduled_events",
      "risk": "read",
      "purpose": "List the users who marked themselves 'Interested' in a scheduled event.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 1394,
      "tokens": 348.5,
      "definition": {
        "name": "discord_get_event_subscribers",
        "description": "List the users who marked themselves 'Interested' in a scheduled event. Returns { subscribers: [...], nextCursor }. A page holds up to 100 users; if nextCursor is non-null, pass it back as `after` to fetch the next page. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "event_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the scheduled event."
            },
            "limit": {
              "default": 25,
              "description": "Max subscribers per page (1–100). Default 25.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "after": {
              "description": "Pagination cursor: a user ID (snowflake). Pass the previous response's nextCursor to fetch the next page.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            }
          },
          "required": [
            "guild_id",
            "event_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "subscribers": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "user_id": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "avatar": {
                    "type": "string"
                  }
                },
                "required": [
                  "user_id",
                  "username",
                  "avatar"
                ],
                "additionalProperties": false
              }
            },
            "nextCursor": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "subscribers",
            "nextCursor"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get event subscribers",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_event_invite",
      "title": "Create event invite",
      "toolset": "scheduled_events",
      "risk": "write",
      "purpose": "Create a shareable invite URL that points to a scheduled event, so recipients land on the event when joining.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_create_invite"
      ],
      "permissions": [
        {
          "name": "Create Instant Invite",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1651,
      "tokens": 412.75,
      "definition": {
        "name": "discord_create_event_invite",
        "description": "Create a shareable invite URL that points to a scheduled event, so recipients land on the event when joining. Requires the Create Instant Invite permission. Returns the invite URL; Discord may reuse a similar existing invite instead of creating a new one. EXTERNAL events need channel_id; other events reject it and use their own channel. The URL is an ordinary channel invite with ?event=<event ID> appended. Use discord_create_invite for a channel invite with the unique or temporary options.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            },
            "event_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the scheduled event to link the invite to."
            },
            "channel_id": {
              "description": "Channel (snowflake) the invite points to. Required for EXTERNAL events, which have no channel of their own. Omit it for VOICE and STAGE_INSTANCE events: they always use their own channel, and passing one fails.",
              "type": "string",
              "pattern": "^\\d{17,20}$"
            },
            "max_age": {
              "default": 86400,
              "description": "Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h).",
              "type": "integer",
              "minimum": 0,
              "maximum": 604800
            },
            "max_uses": {
              "default": 0,
              "description": "Maximum number of uses, 0–100; 0 means unlimited. Default 0.",
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          },
          "required": [
            "guild_id",
            "event_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create event invite",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_invites",
      "title": "List invites",
      "toolset": "invites",
      "risk": "read",
      "purpose": "List all active invites across a server (code, url, channel, inviter, uses, expiry).",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_channel_invites"
      ],
      "permissions": [],
      "bytes": 1635,
      "tokens": 408.75,
      "definition": {
        "name": "discord_list_invites",
        "description": "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.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "guild_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord server (guild) ID (snowflake)."
            }
          },
          "required": [
            "guild_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "invites": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "guild_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "guild_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inviter": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "username"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "uses": {
                    "type": "number"
                  },
                  "max_uses": {
                    "type": "number"
                  },
                  "max_age": {
                    "type": "number"
                  },
                  "temporary": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "code",
                  "url",
                  "guild_id",
                  "guild_name",
                  "channel_id",
                  "channel_name",
                  "inviter",
                  "uses",
                  "max_uses",
                  "max_age",
                  "temporary",
                  "created_at",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "invites"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List invites",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_get_invite",
      "title": "Get invite",
      "toolset": "invites",
      "risk": "read",
      "purpose": "Look up a single invite by its code: target server and channel, inviter, and expiry.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_invites",
        "discord_list_channel_invites"
      ],
      "permissions": [],
      "bytes": 1598,
      "tokens": 399.5,
      "definition": {
        "name": "discord_get_invite",
        "description": "Look up a single invite by its code: target server and channel, inviter, and expiry. Works for any public invite, limited to the DISCORD_ALLOWED_GUILDS servers when that allow-list is set. This endpoint never returns invite metadata (uses/max_uses/max_age read 0, temporary reads false and created_at null); use discord_list_invites or discord_list_channel_invites for real counters. Read-only. Returns a JSON object.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "invite_code": {
              "type": "string",
              "description": "The invite code, e.g. 'abc123'. A full discord.gg/abc123 URL is also accepted and stripped."
            }
          },
          "required": [
            "invite_code"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string"
            },
            "url": {
              "type": "string"
            },
            "guild_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "guild_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "channel_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "channel_name": {
              "type": [
                "string",
                "null"
              ]
            },
            "inviter": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "username": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "username"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "uses": {
              "type": "number"
            },
            "max_uses": {
              "type": "number"
            },
            "max_age": {
              "type": "number"
            },
            "temporary": {
              "type": "boolean"
            },
            "created_at": {
              "type": [
                "string",
                "null"
              ]
            },
            "expires_at": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "code",
            "url",
            "guild_id",
            "guild_name",
            "channel_id",
            "channel_name",
            "inviter",
            "uses",
            "max_uses",
            "max_age",
            "temporary",
            "created_at",
            "expires_at"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Get invite",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_create_invite",
      "title": "Create invite",
      "toolset": "invites",
      "risk": "write",
      "purpose": "Create an invite link for a channel, optionally limiting its lifetime, uses, and membership type.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Create Instant Invite",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1279,
      "tokens": 319.75,
      "definition": {
        "name": "discord_create_invite",
        "description": "Create an invite link for a channel, optionally limiting its lifetime, uses, and membership type. SECURITY: anyone with the returned link can join the server. Requires the Create Instant Invite permission. Returns the invite URL and code.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel the invite leads to."
            },
            "max_age": {
              "default": 86400,
              "description": "Invite lifetime in seconds, 0–604800 (7 days); 0 means it never expires. Default 86400 (24h).",
              "type": "integer",
              "minimum": 0,
              "maximum": 604800
            },
            "max_uses": {
              "default": 0,
              "description": "Maximum number of uses, 0–100; 0 means unlimited. Default 0.",
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            },
            "unique": {
              "description": "If true, always mint a fresh invite instead of reusing an equivalent existing one. Default false.",
              "type": "boolean"
            },
            "temporary": {
              "description": "If true, members who join via this invite are removed when they disconnect (unless they get a role). Default false.",
              "type": "boolean"
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Create invite",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_invite",
      "title": "Delete invite",
      "toolset": "invites",
      "risk": "destructive",
      "purpose": "Revoke an invite by its code so it can no longer be used.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        },
        {
          "name": "Manage Server",
          "condition": null,
          "alternativeTo": "Manage Channels"
        }
      ],
      "bytes": 687,
      "tokens": 171.75,
      "definition": {
        "name": "discord_delete_invite",
        "description": "Revoke an invite by its code so it can no longer be used. IRREVERSIBLE (the code is freed). Requires the Manage Channels permission (or Manage Server). The reason is recorded in the audit log.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "invite_code": {
              "type": "string",
              "description": "The invite code to revoke. A full discord.gg/<code> URL is also accepted."
            },
            "reason": {
              "description": "Optional reason recorded in the server audit log.",
              "type": "string"
            }
          },
          "required": [
            "invite_code"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete invite",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_list_channel_invites",
      "title": "List channel invites",
      "toolset": "invites",
      "risk": "read",
      "purpose": "List the active invites that point to one specific channel.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_list_invites"
      ],
      "permissions": [
        {
          "name": "Manage Channels",
          "condition": null,
          "alternativeTo": null
        }
      ],
      "bytes": 1498,
      "tokens": 374.5,
      "definition": {
        "name": "discord_list_channel_invites",
        "description": "List the active invites that point to one specific channel. Unlike discord_list_invites (server-wide), this scopes results to a single channel. Requires the Manage Channels permission. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "channel_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID (snowflake) of the channel to list invites for."
            }
          },
          "required": [
            "channel_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "invites": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "guild_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "guild_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "inviter": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "username": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "username"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "uses": {
                    "type": "number"
                  },
                  "max_uses": {
                    "type": "number"
                  },
                  "max_age": {
                    "type": "number"
                  },
                  "temporary": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "expires_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "code",
                  "url",
                  "guild_id",
                  "guild_name",
                  "channel_id",
                  "channel_name",
                  "inviter",
                  "uses",
                  "max_uses",
                  "max_age",
                  "temporary",
                  "created_at",
                  "expires_at"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "invites"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "List channel invites",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_dm",
      "title": "Send DM",
      "toolset": "dm",
      "risk": "write",
      "purpose": "Send a private direct message to a user by their user ID.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_message"
      ],
      "permissions": [],
      "bytes": 780,
      "tokens": 195,
      "definition": {
        "name": "discord_send_dm",
        "description": "Send a private direct message to a user by their user ID. Use discord_send_message to post in a server channel instead. Requires the bot to share at least one server with the user, and the user must allow DMs from server members (otherwise Discord rejects the send). Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "content": {
              "type": "string",
              "description": "Plain-text body of the DM (max 2000 characters)."
            }
          },
          "required": [
            "user_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send DM",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_send_dm_embed",
      "title": "Send DM embed",
      "toolset": "dm",
      "risk": "write",
      "purpose": "Send a rich embed as a private direct message to a user.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_dm",
        "discord_send_embed"
      ],
      "permissions": [],
      "bytes": 2552,
      "tokens": 638,
      "definition": {
        "name": "discord_send_dm_embed",
        "description": "Send a rich embed as a private direct message to a user. Use discord_send_dm for plain text, or discord_send_embed to post an embed in a channel. Requires the bot to share a server with the user, and the user must allow DMs from server members. Returns the new message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "content": {
              "description": "Optional plain text shown above the embed.",
              "type": "string"
            },
            "title": {
              "description": "Embed title shown in bold at the top.",
              "type": "string"
            },
            "url": {
              "description": "URL that makes the title clickable.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "description": {
              "description": "Main body text of the embed (supports Markdown).",
              "type": "string"
            },
            "color": {
              "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "fields": {
              "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Field heading."
                  },
                  "value": {
                    "type": "string",
                    "description": "Field body text."
                  },
                  "inline": {
                    "description": "If true, render this field side-by-side with adjacent inline fields.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "additionalProperties": false
              }
            },
            "author": {
              "description": "Author block shown at the top of the embed.",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Author display name."
                },
                "icon_url": {
                  "description": "Small icon shown next to the author name.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                },
                "url": {
                  "description": "URL the author name links to.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "thumbnail_url": {
              "description": "Small image shown in the top-right corner.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "footer": {
              "description": "Footer text shown at the bottom of the embed.",
              "type": "string"
            },
            "image_url": {
              "description": "Large image shown below the embed body.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "timestamp": {
              "description": "If true, stamp the embed with the current time.",
              "type": "boolean"
            }
          },
          "required": [
            "user_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Send DM embed",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_dm",
      "title": "Edit DM",
      "toolset": "dm",
      "risk": "write",
      "purpose": "Edit the text content of a DM message previously sent by this bot.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_dm_embed"
      ],
      "permissions": [],
      "bytes": 843,
      "tokens": 210.75,
      "definition": {
        "name": "discord_edit_dm",
        "description": "Edit the text content of a DM message previously sent by this bot. Only the bot's own DM messages can be edited. Use discord_edit_dm_embed for embed messages. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the target message within the DM conversation."
            },
            "content": {
              "type": "string",
              "description": "New plain-text content that fully replaces the existing message (max 2000 characters)."
            }
          },
          "required": [
            "user_id",
            "message_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit DM",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_edit_dm_embed",
      "title": "Edit DM embed",
      "toolset": "dm",
      "risk": "write",
      "purpose": "Replace the embed on a DM message previously sent by this bot.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_edit_dm",
        "discord_edit_embed"
      ],
      "permissions": [],
      "bytes": 2801,
      "tokens": 700.25,
      "definition": {
        "name": "discord_edit_dm_embed",
        "description": "Replace the embed on a DM message previously sent by this bot. Full replace, not merge: provided fields are applied and omitted fields are dropped. Omitting content, or passing an empty string, keeps the message's current text; this tool cannot clear it. Use discord_edit_dm to change only the text, or discord_edit_embed for a message in a server channel. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the target message within the DM conversation."
            },
            "content": {
              "description": "Optional new plain text shown above the embed.",
              "type": "string"
            },
            "title": {
              "description": "Embed title shown in bold at the top.",
              "type": "string"
            },
            "url": {
              "description": "URL that makes the title clickable.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "description": {
              "description": "Main body text of the embed (supports Markdown).",
              "type": "string"
            },
            "color": {
              "description": "Side-bar color as a hex string, e.g. '#5865F2'.",
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            "fields": {
              "description": "Up to 25 name/value field blocks. Set inline:true on a field to render it side-by-side with adjacent inline fields (up to 3 per row).",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Field heading."
                  },
                  "value": {
                    "type": "string",
                    "description": "Field body text."
                  },
                  "inline": {
                    "description": "If true, render this field side-by-side with adjacent inline fields.",
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "value"
                ],
                "additionalProperties": false
              }
            },
            "author": {
              "description": "Author block shown at the top of the embed.",
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Author display name."
                },
                "icon_url": {
                  "description": "Small icon shown next to the author name.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                },
                "url": {
                  "description": "URL the author name links to.",
                  "type": "string",
                  "format": "uri",
                  "pattern": "^https?://"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "thumbnail_url": {
              "description": "Small image shown in the top-right corner.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "footer": {
              "description": "Footer text shown at the bottom of the embed.",
              "type": "string"
            },
            "image_url": {
              "description": "Large image shown below the embed body.",
              "type": "string",
              "format": "uri",
              "pattern": "^https?://"
            },
            "timestamp": {
              "description": "If true, stamp the embed with the current time.",
              "type": "boolean"
            }
          },
          "required": [
            "user_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Edit DM embed",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_delete_dm",
      "title": "Delete DM",
      "toolset": "dm",
      "risk": "destructive",
      "purpose": "Permanently delete a DM message previously sent by this bot.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 688,
      "tokens": 172,
      "definition": {
        "name": "discord_delete_dm",
        "description": "Permanently delete a DM message previously sent by this bot. IRREVERSIBLE. The bot can only delete its own DM messages, not the recipient's. Returns a confirmation.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the target message within the DM conversation."
            }
          },
          "required": [
            "user_id",
            "message_id"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Delete DM",
          "readOnlyHint": false,
          "destructiveHint": true,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_read_dms",
      "title": "Read DMs",
      "toolset": "dm",
      "risk": "read",
      "purpose": "Read the most recent messages from the bot's DM conversation with a user, oldest-to-newest.",
      "dryRunDefault": false,
      "crossReferences": [],
      "permissions": [],
      "bytes": 1121,
      "tokens": 280.25,
      "definition": {
        "name": "discord_read_dms",
        "description": "Read the most recent messages from the bot's DM conversation with a user, oldest-to-newest. Returns { messages: [...] } with id, author, content, embed count, timestamp. Read-only.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "limit": {
              "default": 20,
              "description": "How many recent messages to fetch (1–100). Default 20.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          "required": [
            "user_id"
          ],
          "additionalProperties": false
        },
        "outputSchema": {
          "type": "object",
          "properties": {
            "messages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "author": {
                    "type": "string"
                  },
                  "author_id": {
                    "type": "string"
                  },
                  "webhook_id": {
                    "type": "string"
                  },
                  "content": {
                    "type": "string"
                  },
                  "embeds": {
                    "type": "number"
                  },
                  "timestamp": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "author",
                  "author_id",
                  "content",
                  "embeds",
                  "timestamp"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "messages"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Read DMs",
          "readOnlyHint": true,
          "openWorldHint": true
        }
      }
    },
    {
      "name": "discord_reply_dm",
      "title": "Reply to DM",
      "toolset": "dm",
      "risk": "write",
      "purpose": "Reply to a specific message in a DM, attaching a quoted reply reference.",
      "dryRunDefault": false,
      "crossReferences": [
        "discord_send_dm"
      ],
      "permissions": [],
      "bytes": 949,
      "tokens": 237.25,
      "definition": {
        "name": "discord_reply_dm",
        "description": "Reply to a specific message in a DM, attaching a quoted reply reference. Unlike the edit/delete DM tools, this works on the bot's messages and the user's alike, though Discord refuses some system messages as reply targets. Use discord_send_dm for a standalone DM with no reference. Returns the new reply's message ID.",
        "inputSchema": {
          "type": "object",
          "properties": {
            "user_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "Discord user ID (snowflake) of the DM recipient."
            },
            "message_id": {
              "type": "string",
              "pattern": "^\\d{17,20}$",
              "description": "ID of the target message within the DM conversation."
            },
            "content": {
              "type": "string",
              "description": "Plain-text body of the reply (max 2000 characters)."
            }
          },
          "required": [
            "user_id",
            "message_id",
            "content"
          ],
          "additionalProperties": false
        },
        "annotations": {
          "title": "Reply to DM",
          "readOnlyHint": false,
          "destructiveHint": false,
          "idempotentHint": false,
          "openWorldHint": true
        }
      }
    }
  ]
}
