Skip to main content
Glama

discord_get_server_stats

Read-only

Retrieve a snapshot of Discord server metrics by guild ID: member and cached bot counts, channel breakdown by type, role count, boost tier and count, and creation date.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "guild_id": "<guild_id>"
    },
    "name": "discord_get_server_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
guild_idYesDiscord server (guild) ID (snowflake).

Output Schema

NameRequiredDescriptionDefault
nameYes
rolesYes
humansYes
channelsYes
createdAtYes
boostCountYes
boostLevelYes
botsInCacheYes
totalMembersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / guild_id / pattern
      Added value: +"^\\d{17,20}$"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "boostCount": {
      +      "type": "number"
      +    },
      +    "boostLevel": {
      +      "type": "number"
      +    },
      +    "botsInCache": {
      +      "type": "number"
      +    },
      +    "channels": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "categories": {
      +          "type": "number"
      +        },
      +        "text": {
      +          "type": "number"
      +        },
      +        "total": {
      +          "type": "number"
      +        },
      +        "voice": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "total",
      +        "text",
      +        "voice",
      +        "categories"
      +      ],
      +      "type": "object"
      +    },
      +    "createdAt": {
      +      "type": "string"
      +    },
      +    "humans": {
      +      "type": "number"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "roles": {
      +      "type": "number"
      +    },
      +    "totalMembers": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "totalMembers",
      +    "humans",
      +    "botsInCache",
      +    "channels",
      +    "roles",
      +    "boostLevel",
      +    "boostCount",
      +    "createdAt"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / guild_id / description
      Added value: +"Discord server (guild) ID (snowflake)."
  4. Addedv1.5.0
  5. Removedv1.0.0
  6. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description is free to add the important caveats — and it does: bots come from the member cache making botsInCache a lower bound and humans an upper bound, role count excludes @everyone, and channel totals include cached threads while text/voice/category counts exclude announcement/stage types. It also warns that with DISCORD_GUILD_MEMBERS=false, totalMembers is stale after connect, which is exactly the kind of accuracy caveat an agent needs before reporting these numbers as fact.

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

Conciseness4/5

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

It is front-loaded with the metric inventory, followed by caveats, and every sentence carries substantive information — the @everyone exclusion and the channel-type distinctions are not filler. The middle sentences are dense run-ons that reward careful reading, which is the only real cost to structure.

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

Completeness5/5

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

An output schema exists, so the description needn't enumerate return values, and it instead spends its budget on the interpretive caveats that determine whether those values can be trusted. Combined with a clean one-parameter schema and read-only annotations, nothing an agent needs to call and correctly interpret this tool is missing.

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

Parameters3/5

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

There is a single parameter and schema description coverage is 100% ("Discord server (guild) ID (snowflake)"), so the schema carries the parameter burden. The description adds no further meaning specific to guild_id — its added value is about return semantics, not the input. Baseline 3 is appropriate here.

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 opens with a specific verb and resource ("Get a snapshot of server metrics") and then enumerates exactly which metrics: member totals, channel breakdown, role count, boost tier/count, and creation date. It also explicitly distinguishes itself from discord_get_guild_info for owner and description fields, so an agent can separate the two server-level tools.

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

Usage Guidelines4/5

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

It names a concrete alternative and the condition that selects it: "For the server's owner and description, use discord_get_guild_info." That is a genuine routing instruction rather than implied usage. It lacks explicit when-not-to-use conditions or prerequisites (e.g., required intents/permissions), which keeps it below a 5.

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

Deploy Server

Other Tools