Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_build_container

Read-onlyIdempotent

Build a Components V2 container JSON node with accent color and child sections or separators, ready to nest into components_v2_send.

Instructions

Purpose: Build a Components V2 Container (type 17) JSON node ready to nest into components_v2_send.

When to use: compose a card with accent color + multiple sections/separators.

Returns: {component} - the JSON node. Pass it inside the components array of components_v2_send.

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

Input Schema

NameRequiredDescriptionDefault
spoilerNoWrap container in spoiler tag
componentsYesUp to 10 child nodes (Section/TextDisplay/MediaGallery/File/Separator/ActionRow). NOT another Container.
accent_colorNoHex RGB integer (0xFF0000 = red)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the compositional contract (the node is meant to be nested into the components array of components_v2_send) and the returns shape, but says nothing about failure behavior or what happens if constraints are violated; with annotations carrying the safety burden, a 3 is appropriate.

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?

Three short labeled lines (Purpose / When to use / Returns) that are front-loaded and waste-free. Every sentence earns its place and no restatement of structured data occurs.

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?

An output schema exists, yet the description still names the returned `{component}` node and how to consume it, and the usage condition covers the composition scenario. For a pure builder with full schema coverage, nothing an agent needs in order to call it correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (spoiler, components, accent_color) are already documented with formats, bounds and the 'NOT another Container' restriction. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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 ('Build a Components V2 Container (type 17) JSON node') and pins down the output artifact, which distinguishes it from sibling builders like components_v2_build_section or components_v2_build_media_gallery. The mention of type 17 and the intended consumer (components_v2_send) removes any ambiguity about what is produced.

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?

Provides an explicit 'When to use' clause — composing a card with accent color plus multiple sections/separators — and tells the agent where the output goes. It does not state when to prefer a simpler sibling (e.g., build_section alone) or explicitly rule out calling it standalone, so it stops short of full alternative routing.

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