Skip to main content
Glama
cappyeo

discord-mcp

mcp_pipeline

Run a sequence of Discord MCP tool calls in one request, passing each step's output into later steps. Reduce multiple round-trips to a single pipeline for sequential workflows.

Instructions

Purpose: Execute a sequence of MCP tool calls in one request. Variables from earlier steps interpolate into later steps via {{step_id.path}}.

When to use: when a workflow needs ≥2 sequential calls (e.g., list channels → find by name → send message). Reduces N round-trips to 1.

When NOT to use: parallel-safe independent calls - issue them as separate tools/call requests. Long-running batch ops - use the dedicated bulk tool (Plan 7+) so each operation can fail independently.

Step shape: {id?, tool, args, save_as?, if?, continue_on_error?}. args may contain {{step_id.path}} placeholders. if is a path check; the step skips when the path resolves to falsy.

Example:

{steps:[
  {id:"channels", tool:"channels_list", args:{guild_id:"123456789012345678"}},
  {id:"send",     tool:"messages_send", args:{channel_id:"{{channels.channels[0].id}}", content:"hi"}}
]}

Returns: {steps:[{id, tool, status, result?, error?, duration_ms}], variables, total_duration_ms, aborted}. Each step status is success | error | skipped.

Limits: max 20 steps per pipeline. Nested mcp_pipeline rejected (no recursion).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYesOrdered steps. Max 20 per pipeline.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Beyond the generic annotations (readOnlyHint=false, openWorldHint=true, etc.), the description discloses critical behavioral details: interpolation via {{step_id.path}}, step skipping via 'if' path checks, the default abort on error with continue_on_error option, max 20 steps, and no recursion. It also describes the return structure. This goes far beyond what annotations 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?

The description is well-structured with bold section headers: Purpose, When to use, When NOT to use, Step shape, Example, Returns, Limits. It front-loads the purpose and uses concise bullet-like phrasing. Every section adds necessary information, and the example is compact yet illustrative. No fluff or repetition.

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 complex meta-tool with only one top-level parameter (steps), the description covers purpose, usage criteria, step schema, interpolation, control flow (if/continue_on_error), return format, and operational limits. The presence of an output schema reduces the need to detail return values, but the description still summarizes them. It is fully complete for an agent to decide when and how to invoke it.

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?

The schema already has 100% coverage with descriptions for all properties, including default id naming. The description adds a concrete example showing interpolation and step chaining, plus clarifies 'if' path semantics ('resolves to falsy') and that args support placeholders. This adds meaningful context beyond the schema, though the schema already does substantial work, so a 4 is appropriate rather than a 5.

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?

The description opens with a clear, specific statement: 'Execute a sequence of MCP tool calls in one request.' It further clarifies the unique interpolation capability, which distinguishes this orchestration tool from all sibling tools that perform single operations. This is a specific verb+resource definition that leaves no ambiguity about what the tool does.

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

Usage Guidelines5/5

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

The description explicitly states when to use ('when a workflow needs ≥2 sequential calls'), when NOT to use ('parallel-safe independent calls', 'long-running batch ops'), and points to an explicit alternative ('dedicated bulk tool (Plan 7+)'). This is exemplary usage guidance covering both inclusion and exclusion criteria.

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