Skip to main content
Glama
discord-mcp

discord-mcp

interactions_create_response

Sends the initial response to a Discord interaction within its 3-second deadline; use deferred replies when more time is needed.

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).

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": {
      "interaction_id": "<interaction_id>",
      "interaction_token": "<interaction_token>",
      "type": "<type>"
    },
    "name": "interactions_create_response"
  }
}

Input 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the hard 3-second deadline, the one-shot nature of the initial callback, the 15-minute scoped token lifetime, and the auth model (token-secured, no bot token). Annotations cover non-destructive/non-idempotent hints, but the timing and one-shot constraints here are the operationally critical facts and they are stated precisely.

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?

Front-loaded purpose line, then labeled sections for the deadline, auth, enum reference, and return value. Dense but every sentence carries operational information; nothing is restated from the schema verbatim without adding meaning.

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 5-parameter mutation with nested `data`, the description covers the failure mode (deadline), the credential lifecycle, the enumeration of response types, and the return shape, which is sufficient even though an output schema also exists.

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?

Schema coverage is 100%, so baseline would be 3, but the description adds value: it lists all ten INTERACTION_RESPONSE_TYPE values including 6, 7, and 8 which the schema's own enum description omits, and explains the `with_response` return difference. It does not elaborate on the shape of `data` beyond what the schema says.

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?

States a specific verb and resource ("Send the initial response to an interaction") and enumerates the interaction kinds it covers (slash command, button, modal submit). It implicitly separates itself from the follow-up/edit siblings by calling this the *initial* response.

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?

Explicitly names the alternative path: if more than 3 seconds are needed, respond with type=5 and then use `interactions_edit_original_response` or `interactions_create_followup`. This is a clear when/when-not rule with named alternatives.

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

Deploy Server

Other Tools