messages_create_thread
Start a public thread anchored to an existing message.
When to use
Section titled “When to use”- Spin up discussion off of an announcement or proposal.
When not to use
Section titled “When not to use”- Forum channels - use
channels_forum_create_thread(Phase B). - Standalone (un-anchored) thread - use a non-message thread tool once available.
MCP call example
Section titled “MCP call example”Tool-authored shorthand:
{channel_id:"111122223333444401", message_id:"999000999000999000", name:"Discussion"}
{ "name": "messages_create_thread", "arguments": { "channel_id": "123456789012345678", "message_id": "123456789012345678", "name": "Example name" }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
channel_id | string | yes | pattern: ^\d{17,20}$ | Parent channel containing the anchor message |
message_id | string | yes | pattern: ^\d{17,20}$ | Message to anchor the thread to |
name | string | yes | min length: 1; max length: 100 | Thread name (1-100 chars) |
auto_archive_duration | 60 | 1440 | 4320 | 10080 | no | Auto-archive after N minutes (60, 1440, 4320, or 10080) | |
rate_limit_per_user | integer | no | min: 0; max: 21600 | Slowmode in seconds (0-21600) |
audit_reason | string | no | min length: 1; max length: 512 | Reason recorded in audit log (X-Audit-Log-Reason header) |
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 containing the anchor message" }, "message_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Message to anchor the thread to" }, "name": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Thread name (1-100 chars)" }, "auto_archive_duration": { "description": "Auto-archive after N minutes (60, 1440, 4320, or 10080)", "anyOf": [ { "type": "number", "const": 60 }, { "type": "number", "const": 1440 }, { "type": "number", "const": 4320 }, { "type": "number", "const": 10080 } ] }, "rate_limit_per_user": { "description": "Slowmode in seconds (0-21600)", "type": "integer", "minimum": 0, "maximum": 21600 }, "audit_reason": { "description": "Reason recorded in audit log (X-Audit-Log-Reason header)", "type": "string", "minLength": 1, "maxLength": 512 } }, "required": [ "channel_id", "message_id", "name" ]}Returns
Section titled “Returns”{thread_id, name, parent_id}.
Example structured result
Section titled “Example structured result”{ "thread_id": "123456789012345678", "name": "Example name", "parent_id": "123456789012345678"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
thread_id | string | yes | pattern: ^\d{17,20}$ | Discord channel ID (snowflake) |
name | string | yes | ||
parent_id | string | null | yes |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "thread_id": { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" }, "name": { "type": "string" }, "parent_id": { "anyOf": [ { "type": "string", "pattern": "^\\d{17,20}$", "description": "Discord channel ID (snowflake)" }, { "type": "null" } ] } }, "required": [ "thread_id", "name", "parent_id" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
messagescategory 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/messages/create_thread.ts