Timeout Member
Immutable Catalog + Curated Guide
This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.
- Contract tier:
agent_ready - Risk:
destructive - Catalog version:
discord-2026.07.12.3 - Descriptor hash:
8d7576caf9d198d42b9127f327508aa536e975182fedaaffcd3cae63a8e03644
Apply a timed moderation timeout to a member.
Request Body
{
"jsonrpc": "2.0",
"id": "discord-timeout-member-example",
"method": "tools/call",
"params": {
"name": "discord.timeout_member",
"arguments": {
"user_id": "99887766",
"duration_minutes": 30,
"reason": "Spam links in support channel"
}
}
}
Arguments Schema
{
"type": "object",
"title": "timeout_member input",
"required": [
"user_id",
"duration_minutes"
],
"properties": {
"reason": {
"type": "string",
"title": "Reason",
"default": "",
"description": "Optional concise audit-log reason for the change."
},
"confirm": {
"type": "string",
"title": "Confirm",
"default": "",
"description": "Exact phrase CONFIRM APPLY when confirmation policy is enabled; never place credentials here."
},
"user_id": {
"type": "string",
"title": "User Id",
"description": "Discord user snowflake identifying the member or DM recipient."
},
"duration_minutes": {
"type": "string",
"title": "Duration Minutes",
"description": "Positive timeout minutes as a decimal string, bounded by Discord's limit."
}
},
"description": "Validated input for the Discord MCP timeout_member tool."
}
Output Schema
{
"oneOf": [
{
"type": "object",
"required": [
"ok",
"data",
"meta"
],
"properties": {
"ok": {
"const": true
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": [
"string",
"null"
],
"description": "Provider data field reason returned by timeout_member."
},
"user_id": {
"type": [
"string",
"null"
],
"description": "Provider data field user_id returned by timeout_member."
},
"timeout_until": {
"type": [
"string",
"null"
],
"description": "Provider data field timeout_until returned by timeout_member."
},
"duration_minutes": {
"type": [
"integer",
"null"
],
"description": "Provider data field duration_minutes returned by timeout_member."
}
},
"description": "member ID, expiry, duration, and reason",
"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-timeout-member-example",
"method": "tools/call",
"params": {
"name": "discord.timeout_member",
"arguments": {
"user_id": "99887766",
"duration_minutes": 30,
"reason": "Spam links in support channel"
}
}
}'
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-timeout-member-example",
"method": "tools/call",
"params": {
"name": "discord.timeout_member",
"arguments": {
"user_id": "99887766",
"duration_minutes": 30,
"reason": "Spam links in support channel"
}
}
}),
});
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-timeout-member-example",
"method": "tools/call",
"params": {
"name": "discord.timeout_member",
"arguments": {
"user_id": "99887766",
"duration_minutes": 30,
"reason": "Spam links in support channel"
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 404 Member Not Found
{
"ok": true,
"applied": true,
"duration_minutes": 30
}
{
"ok": false,
"error": "member_not_found"
}