commands_create_global
Create or upsert a global Discord application command by name and type, updating an existing command when the same name and type are posted.
Instructions
Purpose: Create or upsert a global application command. Global commands propagate within ~1 hour.
Body: standard command shape - name is required. description is required for CHAT_INPUT (type=1) but optional for USER (2) / MESSAGE (3) commands.
Idempotent: posting the same name+type updates the existing command (Discord upsert semantics).
Returns: {id, name, description, type, application_id}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"application_id": "<application_id>",
"name": "<name>"
},
"name": "commands_create_global"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| nsfw | No | ||
| type | No | ||
| handler | No | ||
| options | No | ||
| contexts | No | ||
| description | No | ||
| dm_permission | No | ||
| application_id | Yes | Bot/app application ID | |
| integration_types | No | ||
| default_permission | No | ||
| name_localizations | No | ||
| description_localizations | No | ||
| default_member_permissions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||