Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_build_media_gallery

Read-onlyIdempotent

Builds a Components V2 MediaGallery JSON node from 1–10 media items, each with a URL and optional spoiler or description, for Discord message components.

Instructions

Purpose: Build a Components V2 MediaGallery (type 12) - 1-10 media items.

Returns: {component} - MediaGallery 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": {
      "items": "<items>"
    },
    "name": "components_v2_build_media_gallery"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes1-10 media items

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is fully covered externally. The description adds only the type-12 identifier and a return shape ('{component} - MediaGallery JSON node') that the output schema already supplies, with no note on constraints like URL validity or spoiler handling beyond the schema.

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?

Two labeled lines, front-loaded with purpose and no filler. The 'Returns' line is slightly redundant given the output schema exists, but the whole definition is compact and easy to scan.

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?

A simple one-parameter builder with full schema coverage, annotations and an output schema; the description covers what it makes and what it returns. Only the lack of usage context relative to the other component builders keeps it short of full marks.

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% and the single 'items' parameter is fully documented with nested url/spoiler/description fields plus min/max items. The description's '1-10 media items' merely restates the schema's minItems/maxItems, adding no new meaning.

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 MediaGallery'), names the concrete type identifier (type 12), and states the 1-10 item constraint. This distinguishes it from sibling builders such as build_container and build_section without ambiguity.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given, and no alternatives are named. The only signal is the component name itself, which implies this builds a media gallery rather than a container or section, but the agent gets no explicit routing instruction.

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