Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_send

Sends validated Components V2 messages with rich layouts for announcements, dashboards, and polls, using a preview approval step before delivery.

Instructions

Purpose: Send a Components V2 message - rich layout (Container, Section, MediaGallery, ActionRow, ...). MUTUALLY EXCLUSIVE with content/embed/poll/sticker. Flag IS_COMPONENTS_V2 is irreversible per-message.

When to use: announcements, release notes, dashboards, polls - anything beyond plain text.

When NOT to use: simple text reply → use messages_send.

Validation: components are validated via validateComponentsV2 before sending; the call rejects with VALIDATION_FAILED if the layout is illegal (no API call made).

Returns: {message_id, channel_id, jump_url, component_count}. The server first returns a bounded component review with payload_hash and one-time approval_id; run with MCP_DRY_RUN=false, __confirm:true, the exact __confirm_hash, and __confirm_id before expiry to send once.

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": {
      "channel_id": "<channel_id>",
      "components": "<components>"
    },
    "name": "components_v2_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
__confirmNoAuthorize the exact payload supplied in this call after reviewing its summary.
channel_idYesTarget channel
componentsYesComponents V2 array (1-40 items, recursive)
__confirm_idNoOne-time approval ID returned by the preceding preview; expires shortly.
__confirm_hashNoSHA-256 payload_hash returned by the preceding preview.
allowed_mentionsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.26.0
    • addedInput schema / properties / __confirm
      Added value: +{
      +  "description": "Authorize the exact payload supplied in this call after reviewing its summary.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / __confirm_hash
      Added value: +{
      +  "description": "SHA-256 payload_hash returned by the preceding preview.",
      +  "pattern": "^[a-f0-9]{64}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / __confirm_id
      Added value: +{
      +  "description": "One-time approval ID returned by the preceding preview; expires shortly.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. First observedv0.22.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that the IS_COMPONENTS_V2 flag is irreversible per message, that layout is validated by validateComponentsV2 before any API call and rejects with VALIDATION_FAILED, and that a bounded review with payload_hash/approval_id must be confirmed before expiry. The two-phase send-once semantics are exactly the kind of behavior an agent could not infer from readOnlyHint/destructiveHint alone.

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

Conciseness4/5

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

Labeled sections (Purpose / When to use / When NOT / Validation / Returns) front-load the decision-relevant facts with no filler. The final paragraph is dense, packing return shape, the preview flow, and the confirm requirement into one sentence, and "polls" as a use case sits oddly next to the mutual-exclusion note against the poll payload.

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 6-parameter, nested, write-capable tool with a confirmation handshake, the description covers validation behavior, failure mode, exclusivity constraints, and the approval loop. An output schema exists, so the return-field summary is bonus rather than a gap-filler.

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 83%, so baseline is 3; the description earns extra by explaining the confirm triplet beyond the schema — that __confirm_hash must be the exact returned hash and __confirm_id the one-time approval ID that expires shortly, and that __confirm authorizes the reviewed payload. It does not add structural guidance for the recursive `components` array, so it stops short of 5.

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?

Opens with a specific verb and resource ("Send a Components V2 message") and immediately scopes it as a rich-layout message type, naming concrete component kinds (Container, Section, MediaGallery, ActionRow). It also distinguishes itself from plain-text siblings by declaring mutual exclusivity with content/embed/poll/sticker.

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?

Has explicit "When to use" (announcements, release notes, dashboards) and "When NOT to use: simple text reply → use `messages_send`", naming the exact alternative. The Returns paragraph also establishes the required preview-then-confirm workflow, so an agent knows the operational path before calling.

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