Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_validate

Read-onlyIdempotent

Validate a Components V2 layout offline before sending to catch rule violations, so agents can fix nesting, style, and ID issues without Discord API round-trips.

Instructions

Purpose: Validate a Components V2 components array OFFLINE (no Discord API call). Enforces the 40-cap, placement and nesting rules, ActionRow cardinality, Button style contracts, unique custom_id values, accessory requirements, and MediaGallery range. File components are rejected because the current send/edit tools do not upload attachments.

When to use: iterate on a layout before sending. Saves round-trips for agents constructing complex cards.

Returns: {valid, issues:[{path, code, message, fix_hint?}]}.

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_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentsYesComponents array (will be validated)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by enumerating the concrete rule set enforced (40-cap, placement/nesting, ActionRow cardinality, Button style contracts, unique custom_id, accessory requirements, MediaGallery range). It also discloses a non-obvious constraint that file components are rejected because the send/edit tools cannot upload attachments, which is exactly the kind of behavioral detail annotations cannot convey.

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 blocks (Purpose / When to use / Returns) with the most decision-relevant fact — offline, no API call — front-loaded in the first line. No filler sentences; every clause conveys a rule or routing signal.

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 single-input validator this covers scope, enforcement rules, a notable rejection case, and the return shape. Although an output schema exists, restating the {valid, issues[]} contract is a cheap reinforcement rather than a gap, and nothing needed 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?

With a single parameter at 100% schema description coverage, the schema already carries the parameter meaning and baseline is 3. The description adds only that the array will be validated against the listed rules, without format examples or structure hints for the component objects themselves.

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 (validate) applied to a specific resource (Components V2 components array) and immediately bounds scope with 'OFFLINE (no Discord API call)'. This cleanly separates it from sending/editing tools and from the builder siblings without the agent needing to open any schema.

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: iterate on a layout before sending, to save round-trips on complex cards. It does not name when NOT to use it or point at a specific alternative such as a preview tool, but the usage trigger is clear and actionable.

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