Skip to main content
Glama

pipe_tools

Chain multiple MCP tool calls and filter or transform JSON locally in one sandboxed turn, using templated steps to pass results between calls.

Instructions

Chain multiple MCP tool calls + filter/transform JSON locally in ONE turn inside a sandbox.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pipe_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoDeclarative sequence: [{ id, tool, args, fields }] with {{step0.key}} templating
fieldsNoFinal fields projection
scriptNoOptional async JS body using await call("server.tool", args)
maxTokensNoMax output tokens for final result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden. "Sandbox" and "ONE turn" hint at an isolated execution model, but nothing is said about which tools/operations are permitted inside, whether writes are allowed, error handling when a step fails, or how results are returned — critical gaps for a tool that executes arbitrary JS.

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?

A single dense sentence with the core capability front-loaded and no wasted words. The capitalized "ONE turn" earns its emphasis by conveying the batching benefit.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex orchestration tool with no output schema and optional all-empty parameters, the definition leaves key questions open: what the final result looks like, how the fields projection interacts with maxTokens, and what failure of an intermediate step yields. Adequate to identify the tool, not adequate to invoke it confidently.

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?

Schema description coverage is 100% and every parameter (steps, fields, script, maxTokens) is already documented in the schema, so the schema does the heavy lifting. The description adds no extra semantics such as ordering guarantees or how {{step0.key}} templates resolve.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific verbs (chain, filter, transform) and resources (MCP tool calls, JSON) plus a scope signal ("in ONE turn inside a sandbox"). It is distinguishable from a single-call sibling, though it never names call_tool or search_tools to sharpen the contrast.

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

Usage Guidelines3/5

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

Usage is implied by "chain multiple MCP tool calls ... in ONE turn", which suggests the multi-step case, but there is no explicit when-to-use/ when-not guidance and no named alternative for the single-call case. The agent must infer that call_tool is the simpler path.

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