Skip to main content
Glama

discord_list_guilds

Retrieve a list of all Discord servers where the bot is currently connected, enabling server management and monitoring.

Instructions

List all Discord servers the bot is connected to.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Definition of the discord_list_guilds tool, including its name, description, and empty input schema.
    {
      name: "discord_list_guilds",
      description: "List all Discord servers the bot is connected to.",
      inputSchema: { type: "object", properties: {} },
    },
  • Implementation of the discord_list_guilds tool, which fetches guilds from the Discord client cache and returns them as a JSON string.
    case "discord_list_guilds": {
      const guilds = discord.guilds.cache.map((g) => ({
        id: g.id, name: g.name, memberCount: g.memberCount, icon: g.iconURL(),
      }));
      return { content: [{ type: "text", text: JSON.stringify(guilds, null, 2) }] };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden but only states what the tool does, not how it behaves. It doesn't disclose whether this is a read-only operation, what format the output takes, whether there are rate limits, or if authentication is required beyond bot connection.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that communicates the essential purpose without any wasted words. It's appropriately sized for a simple listing tool with no parameters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter listing tool with no output schema, the description is minimally adequate but lacks important context about output format, pagination, or error conditions. It meets basic requirements but leaves significant behavioral questions unanswered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

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

The tool has zero parameters with 100% schema description coverage. The description appropriately doesn't discuss parameters since none exist, and the baseline for zero parameters is 4.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('List all') and resource ('Discord servers the bot is connected to'). It distinguishes from siblings like discord_list_channels or discord_list_roles by specifying servers/guilds as the target resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided about when to use this tool versus alternatives. While the purpose is clear, there's no mention of prerequisites, typical use cases, or how it differs from similar listing tools like discord_get_guild_info.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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