Skip to main content

Read Discord Direct Messages

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READdiscord.read_private_messages
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: discord-2026.07.12.3
  • Descriptor hash: 8026654f553321ee0b4fe479a908fcecd1617ce5a5302f821d4af87ae616e09b

Use this when you need recent DM history and DM access is enabled. This reads direct-message history without changing state through Discord's API and returns recipient/channel IDs and recent message records. It requires a configured Discord bot and guild with the relevant permissions.

Request Body

{
"jsonrpc": "2.0",
"id": "discord-read-private-messages-example",
"method": "tools/call",
"params": {
"name": "discord.read_private_messages",
"arguments": {
"user_id": "user_id_123",
"count": "count_example"
}
}
}

Arguments Schema

{
"type": "object",
"title": "read_private_messages input",
"required": [
"user_id"
],
"properties": {
"count": {
"type": "string",
"title": "Count",
"default": "",
"description": "Maximum records to return as a positive decimal string within the tool's limit."
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "Discord user snowflake identifying the member or DM recipient."
}
},
"description": "Validated input for the Discord MCP read_private_messages tool."
}

Output Schema

{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"count": {
"type": [
"integer",
"null"
],
"description": "Provider data field count returned by read_private_messages."
},
"messages": {
"type": "array",
"items": {},
"description": "Provider data field messages returned by read_private_messages."
}
},
"description": "recipient/channel IDs and recent message records",
"additionalProperties": true
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"ok",
"error",
"meta"
],
"properties": {
"ok": {
"const": false
},
"meta": {
"type": "object",
"required": [
"duration_ms",
"rate_limit",
"warnings"
],
"properties": {
"guild_id": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"thread_id": {
"type": "string"
},
"channel_id": {
"type": "string"
},
"rate_limit": {
"type": "object",
"additionalProperties": true
},
"request_id": {
"type": "string"
},
"duration_ms": {
"type": "integer",
"minimum": 0
}
},
"description": "Safe execution metadata containing no credentials or raw headers.",
"additionalProperties": true
},
"error": {
"type": "object",
"required": [
"type",
"message"
],
"properties": {
"type": {
"type": "string"
},
"message": {
"type": "string"
},
"diagnostics": {
"type": "object",
"additionalProperties": true
},
"required_perms": {
"type": "array",
"items": {
"type": "string"
}
},
"discord_error_code": {
"type": "integer"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"title": "Discord MCP provider result",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Normalized success or semantic-error response; ok=false is a failed call."
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "discord-read-private-messages-example",
"method": "tools/call",
"params": {
"name": "discord.read_private_messages",
"arguments": {
"user_id": "user_id_123",
"count": "count_example"
}
}
}'

Example Responses

{
"ok": true,
"message": "Tool discord.read_private_messages executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}