voice_get_user_state
Fetch a user’s voice state in a guild (/guilds/{guild.id}/voice-states/{user.id}).
MCP call example
Section titled “MCP call example”{ "name": "voice_get_user_state", "arguments": { "guild_id": "123456789012345678", "user_id": "123456789012345678" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
guild_id | string | yes | pattern: ^\d{17,20}$ | Guild to query |
user_id | string | yes | pattern: ^\d{17,20}$ | Member whose voice state to fetch |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "guild_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Guild to query" }, "user_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Member whose voice state to fetch" } }, "required": [ "guild_id", "user_id" ]}Returns
Section titled “Returns”voice state shape (channel, mute/deaf flags, request_to_speak_timestamp).
Example structured result
Section titled “Example structured result”{ "guild_id": "123456789012345678", "channel_id": "123456789012345678", "user_id": "123456789012345678", "session_id": "123456789012345678", "deaf": true, "mute": true, "self_deaf": true, "self_mute": true, "self_video": true, "suppress": true, "request_to_speak_timestamp": "2030-01-01T10:00:00.000Z"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
guild_id | string | yes | pattern: ^\d{17,20}$ | Discord guild (server) ID |
channel_id | string | null | yes | ||
user_id | string | yes | pattern: ^\d{17,20}$ | Discord user ID |
session_id | string | yes | ||
deaf | boolean | yes | ||
mute | boolean | yes | ||
self_deaf | boolean | yes | ||
self_mute | boolean | yes | ||
self_stream | boolean | no | ||
self_video | boolean | yes | ||
suppress | boolean | yes | ||
request_to_speak_timestamp | string | null | yes |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "guild_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord guild (server) ID" }, "channel_id": { "anyOf": [ { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" }, { "type": "null" } ] }, "user_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord user ID" }, "session_id": { "type": "string" }, "deaf": { "type": "boolean" }, "mute": { "type": "boolean" }, "self_deaf": { "type": "boolean" }, "self_mute": { "type": "boolean" }, "self_stream": { "type": "boolean" }, "self_video": { "type": "boolean" }, "suppress": { "type": "boolean" }, "request_to_speak_timestamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "guild_id", "channel_id", "user_id", "session_id", "deaf", "mute", "self_deaf", "self_mute", "self_video", "suppress", "request_to_speak_timestamp" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
voicecategory must be enabled byMCP_CATEGORIESwhen an allowlist is set. - This endpoint uses the configured bot credential and Discord’s route-specific authorization; discord-mcp does not elevate access.
- An invalid credential returns a
401-class tool error. Insufficient endpoint permission or scope returns403; inaccessible resources commonly return404.
Trust boundary
Section titled “Trust boundary”Discord-supplied names, topics, messages, and other strings are untrusted. Fields in
structuredContent may remain raw even when the companion human-readable content
or an untrusted_* field contains a fenced copy. Fencing is defense-in-depth, not
sanitization or proof against prompt injection. Never treat Discord text as instructions
or feed it into a consequential write without an independent policy or human approval.
Source
Section titled “Source”packages/mcp-core/src/tools/voice/get_user_state.ts