Create Discord Text Channel
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
agent_ready - Risk:
write - Catalog version:
discord-2026.07.12.3 - Descriptor hash:
ad8482e684254ed55adf6193b0593d39dec5eaeb7e3f0120a40240c8cd0a2fa7
Use this when you need a new text channel in the guild or category. This creates a guild text channel through Discord's API and returns new channel ID, name, guild ID, and category ID. It requires a configured Discord bot and guild with the relevant permissions.
Request Body
{
"jsonrpc": "2.0",
"id": "discord-create-text-channel-example",
"method": "tools/call",
"params": {
"name": "discord.create_text_channel",
"arguments": {
"name": "name_example",
"confirm": "confirm_example",
"guild_id": "guild_id_123",
"category_id": "category_id_123"
}
}
}
Arguments Schema
{
"type": "object",
"title": "create_text_channel input",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Human-readable name for the Discord resource being created."
},
"confirm": {
"type": "string",
"title": "Confirm",
"default": "",
"description": "Exact phrase CONFIRM APPLY when confirmation policy is enabled; never place credentials here."
},
"guild_id": {
"type": "string",
"title": "Guild Id",
"default": "",
"description": "Optional Discord guild snowflake override; otherwise uses request-scoped configuration."
},
"category_id": {
"type": "string",
"title": "Category Id",
"default": "",
"description": "Discord category snowflake identifying the parent category or target category."
}
},
"description": "Validated input for the Discord MCP create_text_channel tool."
}
Output Schema
{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Provider data field name returned by create_text_channel."
},
"channel_id": {
"type": [
"string",
"null"
],
"description": "Provider data field channel_id returned by create_text_channel."
},
"category_id": {
"type": [
"string",
"null"
],
"description": "Provider data field category_id returned by create_text_channel."
},
"category_name": {
"type": [
"string",
"null"
],
"description": "Provider data field category_name returned by create_text_channel."
}
},
"description": "new channel ID, name, guild ID, and category ID",
"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
- Node.js
- Python
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-create-text-channel-example",
"method": "tools/call",
"params": {
"name": "discord.create_text_channel",
"arguments": {
"name": "name_example",
"confirm": "confirm_example",
"guild_id": "guild_id_123",
"category_id": "category_id_123"
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "discord-create-text-channel-example",
"method": "tools/call",
"params": {
"name": "discord.create_text_channel",
"arguments": {
"name": "name_example",
"confirm": "confirm_example",
"guild_id": "guild_id_123",
"category_id": "category_id_123"
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "discord-create-text-channel-example",
"method": "tools/call",
"params": {
"name": "discord.create_text_channel",
"arguments": {
"name": "name_example",
"confirm": "confirm_example",
"guild_id": "guild_id_123",
"category_id": "category_id_123"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool discord.create_text_channel executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}