Skip to main content
Glama
discord-mcp

discord-mcp

voice_get_user_state

Read-onlyIdempotent

Fetch a Discord guild member's voice state to check their current voice channel, mute/deaf status, and request-to-speak timestamp by guild and user ID.

Instructions

Purpose: Fetch a user's voice state in a guild (/guilds/{guild.id}/voice-states/{user.id}).

Returns: voice state shape (channel, mute/deaf flags, request_to_speak_timestamp).

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>",
      "user_id": "<user_id>"
    },
    "name": "voice_get_user_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesMember whose voice state to fetch
guild_idYesGuild to query

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "$schema": "https://json-schema.org/draft/2020-12/schema",
      -    "additionalProperties": {},
      -    "properties": {
      -      "channel_id": {
      -        "anyOf": [
      -          {
      -            "description": "Discord channel ID (snowflake)",
      -            "pattern": "^\\d{17,20}$",
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "deaf": {
      -        "type": "boolean"
      -      },
      -      "guild_id": {
      -        "description": "Discord guild (server) ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      },
      -      "mute": {
      -        "type": "boolean"
      -      },
      -      "request_to_speak_timestamp": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "self_deaf": {
      -        "type": "boolean"
      -      },
      -      "self_mute": {
      -        "type": "boolean"
      -      },
      -      "self_stream": {
      -        "type": "boolean"
      -      },
      -      "self_video": {
      -        "type": "boolean"
      -      },
      -      "session_id": {
      -        "type": "string"
      -      },
      -      "suppress": {
      -        "type": "boolean"
      -      },
      -      "user_id": {
      -        "description": "Discord user ID",
      -        "pattern": "^\\d{17,20}$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "guild_id",
      -      "channel_id",
      -      "user_id",
      -      "session_id",
      -      "deaf",
      -      "mute",
      -      "self_deaf",
      -      "self_mute",
      -      "self_video",
      -      "suppress",
      -      "request_to_speak_timestamp"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "category": {
      -        "enum": [
      -          "client",
      -          "server"
      -        ],
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "recovery_hint": {
      -        "type": "string"
      -      },
      -      "retriable": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "code",
      -      "retriable",
      -      "category",
      -      "recovery_hint"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "$schema": "https://json-schema.org/draft/2020-12/schema",
      +    "additionalProperties": {},
      +    "properties": {
      +      "channel_id": {
      +        "anyOf": [
      +          {
      +            "description": "Discord channel ID (snowflake)",
      +            "pattern": "^\\d{17,20}$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "deaf": {
      +        "type": "boolean"
      +      },
      +      "guild_id": {
      +        "description": "Discord guild (server) ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      },
      +      "mute": {
      +        "type": "boolean"
      +      },
      +      "request_to_speak_timestamp": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "self_deaf": {
      +        "type": "boolean"
      +      },
      +      "self_mute": {
      +        "type": "boolean"
      +      },
      +      "self_stream": {
      +        "type": "boolean"
      +      },
      +      "self_video": {
      +        "type": "boolean"
      +      },
      +      "session_id": {
      +        "type": "string"
      +      },
      +      "suppress": {
      +        "type": "boolean"
      +      },
      +      "user_id": {
      +        "description": "Discord user ID",
      +        "pattern": "^\\d{17,20}$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "guild_id",
      +      "channel_id",
      +      "user_id",
      +      "session_id",
      +      "deaf",
      +      "mute",
      +      "self_deaf",
      +      "self_mute",
      +      "self_video",
      +      "suppress",
      +      "request_to_speak_timestamp"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "category": {
      +        "enum": [
      +          "client",
      +          "server"
      +        ],
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "recovery_hint": {
      +        "type": "string"
      +      },
      +      "retriable": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "code",
      +      "retriable",
      +      "category",
      +      "recovery_hint"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observedv0.22.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds the endpoint path and a short field list, but says nothing about permission/intent requirements or what happens when the user is not connected to voice.

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?

Two short, front-loaded lines with an explicit Purpose/Returns structure and no filler. The Returns line is somewhat redundant given an output schema exists, which keeps it from a 5.

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

Completeness4/5

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

This is a simple two-parameter read tool with full annotation coverage, a complete schema, and an output schema, so the description is nearly sufficient. Only the lack of any routing guidance against the current-user-state sibling leaves a small gap.

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?

Schema description coverage is 100%, and both parameters already carry descriptions and ID patterns, so the baseline is 3. The description adds no meaning beyond the schema — it does not clarify guild_id versus user_id beyond what is already documented.

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 gives a specific verb and resource ("Fetch a user's voice state in a guild") and even pins the REST path, so the scope is unambiguous. It doesn't explicitly contrast itself with the sibling voice_get_current_user_state, which is the main missed opportunity for 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?

Usage is only implied: an agent can infer this is for inspecting another member's voice state because user_id is required. There is no statement of when to prefer this over voice_get_current_user_state or guild_modify_user_voice_state, and no prerequisites or exclusions.

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