Skip to main content
Glama

discord_get_server_stats

Read-only

Get a server stats snapshot: total members (humans vs cached bots), text/voice/category channels, role count, boost tier/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. Read-only. Returns a JSON object. Note: bots are counted from the member cache only, so botsInCache is a lower bound and humans (total minus cached bots) an upper bound.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
guild_idYesDiscord server (guild) ID (snowflake).

Output Schema

TableJSON 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

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description reinforces this with 'Read-only.' It adds valuable behavioral context beyond the annotations by disclosing that bots are counted only from the member cache, making botsInCache a lower bound and humans an upper bound. This caveat is exactly the kind of non-obvious behavior an agent needs to correctly interpret results.

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 compact and front-loaded: it states the purpose, lists the metric categories, confirms read-only behavior, and then adds the important caching caveat. Every sentence contributes useful information, and there is no filler or repetition.

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?

For a single-parameter, read-only snapshot tool with an output schema and strong annotations, the description is complete. It covers what is returned, the read-only nature, and the crucial caveat about cached bot counts, leaving no important gap for an agent to call and interpret the tool effectively.

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?

The input schema already documents guild_id with its type, pattern, and description, and schema description coverage is 100%. The tool description does not add any extra meaning about the parameter itself, so the baseline score of 3 is appropriate.

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

Purpose4/5

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

The description clearly states the tool returns a snapshot of server metrics and enumerates the specific data included (members, channels, roles, boosts, creation date). It is distinct in content from siblings like discord_get_guild_info, but it does not explicitly name or contrast any sibling, so it stops short of full differentiation.

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

Usage Guidelines3/5

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

The purpose statement implies this is the tool to use when a server metrics snapshot is needed, and the 'Read-only' note signals safe usage. However, there is no explicit guidance about when not to use it or which sibling alternatives might be more appropriate for related but different needs, such as discord_get_guild_info or discord_list_channels.

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