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
| Name | Required | Description | Default |
|---|---|---|---|
| steps | Yes | Ordered steps. Max 20 per pipeline. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||