Skip to main content
Glama
discord-mcp

discord-mcp

components_v2_preview

Read-onlyIdempotent

Render a Components V2 layout as ASCII to inspect structure before sending. Use offline checks to catch layout issues before posting to Discord.

Instructions

Purpose: Render a Components V2 layout as ASCII so the agent can sanity-check structure without sending. Pairs with components_v2_validate for offline iteration.

Returns: {ascii} - multi-line string visualizing the layout.

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

Input Schema

NameRequiredDescriptionDefault
componentsYesComponents array to render

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior; the description adds the meaningful clarification that nothing is dispatched ('without sending'), which heads off a plausible agent misconception that a preview might post the layout. It also documents the return shape, though it says nothing about error behavior for malformed component arrays.

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?

Purpose is front-loaded, followed by the sibling pairing and a one-line return statement. Every sentence carries distinct information and there is no filler.

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 one-parameter, read-only rendering tool with rich annotations and an output schema, the description covers purpose, workflow partner, and return value adequately. A note on whether validation is a prerequisite would close the last small 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?

With a single parameter at 100% schema description coverage, the schema already explains `components`. The description adds no additional syntax, shape, or constraints for the array, 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 ('Render') and resource ('Components V2 layout as ASCII') with an explicit scoping qualifier ('without sending'), which cleanly separates it from the send and build siblings. An agent can identify this tool's job without opening the 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?

Gives clear context ('sanity-check structure without sending') and names the complementary tool `components_v2_validate` for offline iteration, implying a preview-then-validate workflow. It does not explicitly state when to skip preview in favor of `components_v2_send`, so the routing against the send path is only implied.

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