Skip to main content
Glama
cappyeo

discord-mcp

components_v2_validate

Read-onlyIdempotent

Validate Discord Components V2 arrays offline before sending. Enforces caps, placement, nesting, button styles, unique IDs, and accessory rules to prevent API errors.

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?}]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentsYesComponents array (will be validated)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Adds valuable behavioral context beyond the annotations: offline operation, rejection of file components with a reason, and the exact return structure. Annotations already declare readOnly/idempotent, but the description discloses additional constraints and limitations.

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 clearly labeled sections (Purpose, When to use, Returns) with no fluff. Every sentence adds information, and the structure is front-loaded with the most critical info.

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?

Given the tool's simplicity and the presence of an output schema, the description fully covers purpose, usage, constraints, and return format. No notable gaps.

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% for the single param, but the schema description is tautological ('Components array (will be validated)'). The tool description enriches the parameter meaning by defining what validation entails (Components V2-specific rules) and clarifying scope.

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+resource: 'Validate a Components V2 components array OFFLINE (no Discord API call)'. Also lists specific validation rules (40-cap, placement, nesting, etc.) and distinguishes it from sibling send/preview tools by emphasizing offline validation.

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 clear guidance: 'iterate on a layout before sending' and notes it 'saves round-trips'. It implies use before API calls but does not explicitly name alternatives or state when not to use it. Still, the context is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cappyeo/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server