Submit Legacy Discord Job
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
legacy - Risk:
write - Catalog version:
discord-2026.07.12.3 - Descriptor hash:
583d01a0d4560b3c431b03e7dcb125b080ff974b0e071c55e228bbe488867dfa
Use this when a legacy automation must run a supported action asynchronously. Do not use it when a typed direct tool is available. This queues behavior selected through a generic action field through Discord's API and returns a task ID, queued status, and selected action. It requires a configured Discord bot and guild with the relevant permissions.
Request Body
{
"jsonrpc": "2.0",
"id": "discord-discord-job-submit-example",
"method": "tools/call",
"params": {
"name": "discord.discord_job_submit",
"arguments": {
"action": "channel_daily_audit",
"params": ""
}
}
}
Arguments Schema
{
"type": "object",
"title": "discord_job_submit input",
"required": [
"action"
],
"properties": {
"action": {
"enum": [
"channel_daily_audit",
"discord_ack",
"discord_health_check",
"discord_smoke_test",
"find_channel",
"get_server_info",
"list_channels",
"list_threads",
"read_messages",
"search_messages",
"send_message"
],
"type": "string",
"title": "Action",
"description": "Exact supported native tool name to execute asynchronously."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Params",
"default": null,
"description": "JSON arguments for the selected legacy action; prefer its typed direct tool."
}
},
"description": "Validated input for the Discord MCP discord_job_submit tool."
}
Output Schema
{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"action": {
"type": [
"string",
"null"
],
"description": "Provider data field action returned by discord_job_submit."
},
"status": {
"type": [
"string",
"null"
],
"description": "Provider data field status returned by discord_job_submit."
},
"task_id": {
"type": [
"string",
"null"
],
"description": "Provider data field task_id returned by discord_job_submit."
}
},
"description": "a task ID, queued status, and selected action",
"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-discord-job-submit-example",
"method": "tools/call",
"params": {
"name": "discord.discord_job_submit",
"arguments": {
"action": "channel_daily_audit",
"params": ""
}
}
}'
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-discord-job-submit-example",
"method": "tools/call",
"params": {
"name": "discord.discord_job_submit",
"arguments": {
"action": "channel_daily_audit",
"params": ""
}
}
}),
});
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-discord-job-submit-example",
"method": "tools/call",
"params": {
"name": "discord.discord_job_submit",
"arguments": {
"action": "channel_daily_audit",
"params": ""
}
}
}
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.discord_job_submit 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."
}