Skip to main content
Glama

discord_get_guild_info

Retrieve comprehensive Discord server details including name, member count, channels, roles, and boost status using the guild ID.

Instructions

Get detailed info about a guild: name, member count, channels, roles, boosts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYes

Implementation Reference

  • The handler logic for 'discord_get_guild_info' in src/tools/discovery.ts.
    case "discord_get_guild_info": {
      const guild = await (await discord.guilds.fetch(validateId(args.guild_id, "guild_id"))).fetch();
      return {
        content: [{
          type: "text", text: JSON.stringify({
            id: guild.id, name: guild.name, description: guild.description,
            memberCount: guild.memberCount, channelCount: guild.channels.cache.size,
            roleCount: guild.roles.cache.size, boostLevel: guild.premiumTier,
            boostCount: guild.premiumSubscriptionCount, createdAt: guild.createdAt, owner: guild.ownerId,
          }, null, 2),
        }],
      };
    }
  • The tool definition and schema for 'discord_get_guild_info'.
    {
      name: "discord_get_guild_info",
      description: "Get detailed info about a guild: name, member count, channels, roles, boosts.",
      inputSchema: {
        type: "object",
        properties: { guild_id: { type: "string" } },
        required: ["guild_id"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaSympa/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server