Skip to content

entitlements_create_test

Monetization Writes to Discord

Create a test entitlement (dev tool). Lets devs simulate that a user/guild owns a SKU.

{
"name": "entitlements_create_test",
"arguments": {
"application_id": "123456789012345678",
"sku_id": "123456789012345678",
"owner_id": "123456789012345678",
"owner_type": 1
}
}
FieldTypeRequiredConstraintsDescription
application_idstringyespattern: ^\d{17,20}$Your application/bot ID
sku_idstringyespattern: ^\d{17,20}$SKU to grant
owner_idstringyespattern: ^\d{17,20}$Guild ID (owner_type=1) or User ID (owner_type=2)
owner_type1 | 2yes1 = guild, 2 = user
Complete input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"application_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Your application/bot ID"
},
"sku_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "SKU to grant"
},
"owner_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Guild ID (owner_type=1) or User ID (owner_type=2)"
},
"owner_type": {
"anyOf": [
{
"type": "number",
"const": 1
},
{
"type": "number",
"const": 2
}
],
"description": "1 = guild, 2 = user"
}
},
"required": [
"application_id",
"sku_id",
"owner_id",
"owner_type"
]
}

{id, sku_id, application_id, type}.

{
"id": "123456789012345678",
"sku_id": "123456789012345678",
"application_id": "123456789012345678",
"type": 1
}
FieldTypeRequiredConstraintsDescription
idstringyespattern: ^\d{17,20}$Discord entitlement ID
sku_idstringyespattern: ^\d{17,20}$Discord SKU ID
application_idstringyespattern: ^\d{17,20}$Discord application ID
typeintegeryes
Complete output JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord entitlement ID"
},
"sku_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord SKU ID"
},
"application_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "Discord application ID"
},
"type": {
"type": "integer"
}
},
"required": [
"id",
"sku_id",
"application_id",
"type"
],
"additionalProperties": false
}
PropertyValue
Read-onlyno
Destructiveno
Idempotentno
Open-worldyes
Confirmation requiredno
  • The monetization category must be enabled by MCP_CATEGORIES when 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 returns 403; inaccessible resources commonly return 404.

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.

packages/mcp-core/src/tools/monetization/entitlements_create_test.ts