Skip to main content
Glama
cappyeo

discord-mcp

interactions_create_response

Send the initial reply to Discord interactions like slash commands or buttons within the 3-second deadline, or defer it for later follow-up.

Instructions

Purpose: Send the initial response to an interaction (slash command, button, modal submit, etc.).

3-SECOND DEADLINE: Discord rejects this response if not received within 3 seconds of the interaction event. If you need more time, respond with type=5 (DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE) and follow up via interactions_edit_original_response or interactions_create_followup.

Auth: token-secured; no bot token. The initial callback may be sent once. Its interaction token remains a scoped continuation credential for follow-ups for up to 15 minutes, unless the initial 3-second deadline is missed.

INTERACTION_RESPONSE_TYPE values: 1=PONG, 4=CHANNEL_MESSAGE_WITH_SOURCE, 5=DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE, 6=DEFERRED_UPDATE_MESSAGE, 7=UPDATE_MESSAGE, 8=APPLICATION_COMMAND_AUTOCOMPLETE_RESULT, 9=MODAL, 10=PREMIUM_REQUIRED (deprecated), 12=LAUNCH_ACTIVITY.

Returns: {acknowledged:true} (or {message:…} when with_response:true).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoResponse payload - shape depends on `type`. Message body for type=4; modal for type=9.
typeYesINTERACTION_RESPONSE_TYPE (1=PONG, 4=MESSAGE, 5=DEFER, 9=MODAL, 10=PREMIUM, 12=ACTIVITY)
with_responseNoWhen true, server returns the resulting message body. Query param.
interaction_idYesInteraction ID (snowflake) - from the interaction event
interaction_tokenYesScoped interaction credential, reusable for follow-ups for up to 15 minutes. Treat as a credential.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only indicate readOnly=false, openWorld=true, idempotent=false, destructive=false. The description adds critical behavioral details: the 3-second hard deadline, one-time-only callback, token scoping for 15 minutes, and auth characteristics. It explains side effects (message acknowledged or returned) and failure modes, going far beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with bold headings (Purpose, 3-SECOND DEADLINE, Auth, etc.) and every sentence provides distinct value. It is compact given the complexity, front-loads the purpose, and avoids redundancy with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex interaction response tool, the description covers purpose, deadline, auth, alternatives, type enum, and return values. It is fully self-contained for an agent to select and invoke it correctly, even with the rich schema and sibling context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema covers all 5 parameters, the description enriches semantics by listing all INTERACTION_RESPONSE_TYPE values (including 6,7,8 which the schema omits) and clarifying the data shape depends on type. It also elaborates on interaction_token as a scoped credential, adding context beyond the schema's field descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a clear, specific verb+resource: 'Send the initial response to an interaction (slash command, button, modal submit, etc.)'. It explicitly distinguishes this from follow-up interactions by naming interactions_edit_original_response and interactions_create_followup as alternatives, making it distinct from sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides concrete usage guidance: the 3-second deadline, and if more time is needed, instructs to respond with type=5 and follow up via specific tools. It clarifies the initial callback may be sent once, giving an explicit when-to-use and when-to-defer strategy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cappyeo/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server