channels_list_private_archived_threads
List archived private threads under a parent text channel. Requires MANAGE_THREADS permission.
When to use
Section titled “When to use”- Moderation review of historical private threads.
When not to use
Section titled “When not to use”- Private threads the bot created/joined → see
channels_list_joined_private_archived_threads.
MCP call example
Section titled “MCP call example”{ "name": "channels_list_private_archived_threads", "arguments": { "channel_id": "123456789012345678" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
channel_id | string | yes | pattern: ^\d{17,20}$ | Parent channel |
before | string | no | ISO 8601 timestamp - return threads archived before this | |
limit | integer | no | min: 1; max: 100 | Max results (1-100) |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "channel_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Parent channel" }, "before": { "description": "ISO 8601 timestamp - return threads archived before this", "type": "string" }, "limit": { "description": "Max results (1-100)", "type": "integer", "minimum": 1, "maximum": 100 } }, "required": [ "channel_id" ]}Returns
Section titled “Returns”{threads, has_more, count, channel_id}. Structured names remain raw Discord data; the human-readable text response fences them.
Example structured result
Section titled “Example structured result”{ "threads": [ { "id": "123456789012345678", "name": "Example name", "type": 1, "parent_id": "123456789012345678", "owner_id": "123456789012345678", "archive_timestamp": "2030-01-01T10:00:00.000Z" } ], "has_more": true, "count": 1, "channel_id": "123456789012345678"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
threads | array<object> | yes | ||
has_more | boolean | yes | ||
count | integer | yes | ||
channel_id | string | yes | pattern: ^\d{17,20}$ | Discord channel ID (snowflake) |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "threads": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" }, "name": { "type": "string" }, "type": { "type": "integer" }, "parent_id": { "anyOf": [ { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" }, { "type": "null" } ] }, "owner_id": { "anyOf": [ { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord user ID" }, { "type": "null" } ] }, "archive_timestamp": { "anyOf": [ { "type": "string" }, { "type": "null" } ] } }, "required": [ "id", "name", "type", "parent_id", "owner_id", "archive_timestamp" ], "additionalProperties": false } }, "has_more": { "type": "boolean" }, "count": { "type": "integer" }, "channel_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" } }, "required": [ "threads", "has_more", "count", "channel_id" ], "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
channelscategory 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/channels/list_private_archived_threads.ts