Skip to main content

List Discord Threads

Immutable Catalog Entry

This descriptor comes from the active versioned Portal catalog.

READdiscord.list_threads
  • Contract tier: agent_ready
  • Risk: read
  • Catalog version: discord-2026.07.12.3
  • Descriptor hash: 184f2fd724ed6140ee64e0f44ff4a61ed9d72c025d50a3f49afdf381c5fdc9f5

Use this when you need active and optionally archived threads under a channel. This reads thread metadata without changing state through Discord's API and returns thread IDs, names, archive state, parent channel, and counts. It requires a configured Discord bot and guild with the relevant permissions.

Request Body

{
"jsonrpc": "2.0",
"id": "discord-list-threads-example",
"method": "tools/call",
"params": {
"name": "discord.list_threads",
"arguments": {
"limit": "limit_example",
"channel_id": "channel_id_123",
"include_archived": ""
}
}
}

Arguments Schema

{
"type": "object",
"title": "list_threads input",
"properties": {
"limit": {
"type": "string",
"title": "Limit",
"default": "",
"description": "Maximum records or matches, expressed as a positive decimal string unless typed as integer."
},
"channel_id": {
"type": "string",
"title": "Channel Id",
"default": "",
"description": "Discord channel snowflake; empty uses the primary channel only where documented."
},
"include_archived": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "string"
}
],
"title": "Include Archived",
"default": false,
"description": "When true, include archived threads in addition to active threads."
}
},
"description": "Validated input for the Discord MCP list_threads 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 list_threads."
},
"threads": {
"type": "array",
"items": {},
"description": "Provider data field threads returned by list_threads."
},
"channel_id": {
"type": [
"string",
"null"
],
"description": "Provider data field channel_id returned by list_threads."
}
},
"description": "thread IDs, names, archive state, parent channel, and counts",
"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-list-threads-example",
"method": "tools/call",
"params": {
"name": "discord.list_threads",
"arguments": {
"limit": "limit_example",
"channel_id": "channel_id_123",
"include_archived": ""
}
}
}'

Example Responses

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