entitlements_create_test
Create a test entitlement (dev tool). Lets devs simulate that a user/guild owns a SKU.
MCP call example
Section titled “MCP call example”{ "name": "entitlements_create_test", "arguments": { "application_id": "123456789012345678", "sku_id": "123456789012345678", "owner_id": "123456789012345678", "owner_type": 1 }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
application_id |
string | yes | pattern: ^\d{17,20}$ |
Your application/bot ID |
sku_id |
string | yes | pattern: ^\d{17,20}$ |
SKU to grant |
owner_id |
string | yes | pattern: ^\d{17,20}$ |
Guild ID (owner_type=1) or User ID (owner_type=2) |
owner_type |
1 | 2 | yes | 1 = 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" ]}Returns
Section titled “Returns”{id, sku_id, application_id, type}.
Example structured result
Section titled “Example structured result”{ "id": "123456789012345678", "sku_id": "123456789012345678", "application_id": "123456789012345678", "type": 1}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
id |
string | yes | pattern: ^\d{17,20}$ |
Discord entitlement ID |
sku_id |
string | yes | pattern: ^\d{17,20}$ |
Discord SKU ID |
application_id |
string | yes | pattern: ^\d{17,20}$ |
Discord application ID |
type |
integer | yes |
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}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
monetizationcategory must be enabled byMCP_CATEGORIESwhen an allowlist is set. - Access contract: scope=
bot_application; this tool uses the configured bot credential and is scoped to the locked bot application (application-scoped, not guild-scoped). - No named Discord permission bit is asserted by this contract.
- Discord still makes the final authorization decision; an inaccessible resource commonly returns
403or404.
Trust boundary
Section titled “Trust boundary”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.
Source
Section titled “Source”packages/mcp-core/src/tools/monetization/entitlements_create_test.ts

