Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_send_from_template

Populate a built-in Discord V2 template with variables and send it, using a preview-and-confirm step to authorize the exact payload.

Instructions

Purpose: Apply variables to a built-in V2 template and send the result.

Templates v1: announcement, release_notes, welcome_card, poll_results, incident_status. Each declares a variables list - pass values in vars.

Returns: {message_id, jump_url, template}. 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>",
      "template": "<template>",
      "vars": "<vars>"
    },
    "name": "components_v2_send_from_template"
  }
}

Input Schema

NameRequiredDescriptionDefault
varsYesVariable substitutions for {{...}} placeholders
templateYesBuilt-in template name
__confirmNoAuthorize the exact payload supplied in this call after reviewing its summary.
channel_idYesDiscord channel ID (snowflake)
__confirm_idNoOne-time approval ID returned by the preceding preview; expires shortly.
__confirm_hashNoSHA-256 payload_hash returned by the preceding preview.

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.2/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), it discloses that a bounded component review is returned first, that approval_id is one-time and expires shortly, that the hash must match exactly, and that the send occurs once. These are precisely the mutation-safety and authorization details the annotations cannot express.

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?

Front-loads purpose, then templates, then return shape, then the confirmation flow – a sensible ordering with no filler. The 'Returns' paragraph and the confirmation paragraph overlap slightly on the preview behavior, but nothing is wasted.

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

Completeness4/5

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

For a six-parameter, mutation, open-world tool with a confirmation gate, the definition covers the critical safety sequence and template enumeration. It stops short of stating that the first call must omit the __confirm fields or what happens if approval expires mid-flow, which an agent might need for error recovery.

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 the baseline is 3, but the description adds meaning: it explains that templates declare their own variables list and that values go into vars, and it clarifies the confirm trio as a matched hash/ID/boolean gate tied to the preview. The MCP_DRY_RUN reference is an environment variable absent from the schema and is left unexplained.

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

Purpose4/5

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

States a specific verb and resource ('Apply variables to a built-in V2 template and send the result') and enumerates the five supported templates, so the agent knows exactly what will be produced. It does not explicitly contrast itself with the nearby components_v2_send or components_v2_preview siblings, leaving the template-vs-raw-components distinction to inference.

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

Usage Guidelines4/5

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

The description lays out an explicit two-step invocation path: a preview returns payload_hash and a one-time approval_id, then the real send requires MCP_DRY_RUN=false, __confirm:true, the exact hash and ID before expiry. That is strong procedural guidance, but it never says when to prefer this over components_v2_send or when the preview should be run as a separate call, so no alternatives are named.

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