Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_build_section

Read-onlyIdempotent

Build a Discord Components V2 Section with one to three markdown text lines and a required thumbnail or button accessory, returning the Section JSON node.

Instructions

Purpose: Build a Components V2 Section (type 9) - 1-3 TextDisplay lines plus a REQUIRED Thumbnail or Button accessory (Discord rejects a Section without one).

When to use: card-like content with header + supporting text + image.

Returns: {component} - Section JSON node.

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": {
      "text": "<text>",
      "accessory": "<accessory>"
    },
    "name": "components_v2_build_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes1-3 markdown text lines
accessoryYesRequired Thumbnail (type 11) or Button (type 2)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely useful behavioral fact: Discord rejects a Section without an accessory, which explains a hard failure mode. Beyond that it says nothing about how the output is consumed (e.g., that it returns a local JSON node that must be composed and then sent), so the credit is moderate rather than strong.

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 labeled, front-loaded sentences covering purpose, selection criterion, and return value, with no filler. The parenthetical "(type 9)" and the Discord rejection rationale both earn their place.

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 two-parameter builder with a rich schema and an output schema, the description covers purpose, when to use, and return shape, which is nearly everything needed to call it correctly. It leaves the composition workflow (how this node relates to containers/validation/sending) implicit, which is the only real gap.

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%, with both `text` (1-3 markdown lines, 4000 chars each) and `accessory` (Thumbnail type 11 or Button type 2 variants) fully documented in the schema itself. The description restates the headline constraints (1-3 TextDisplay lines, required Thumbnail or Button) without adding format or interaction detail, so baseline 3 applies.

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 concrete verb and resource ("Build a Components V2 Section (type 9)") plus the payload shape it produces, and the one-line "card-like content with header + supporting text + image" distinguishes it from sibling builders like containers or media galleries by content shape rather than name. It stops short of explicitly contrasting itself with those siblings, so it is clear but not maximally differentiating.

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?

An explicit "When to use" line gives a concrete scenario (card-like content with header, supporting text, and image), which is enough context to pick this builder over an arbitrary one. There are no exclusions, prerequisites, or named alternatives (e.g., when to pick a container instead), so it does not reach the top band.

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