Skip to main content
Glama

Build or change a pipeline

save_pipeline
Idempotent

Create a pipeline (no pipeline_id) or change one. A pipeline runs existing workflows (stages) one after another, with checkpoints where the person reviews or chooses. steps is the full ordered list, in the shape get_pipeline shows: steps left out are removed, steps are matched by key. A stage passes text or {{...}} references to its workflow's start inputs: {{start_input}}, {{stage_key.output.field}} (a field of the stage workflow's final JSON Schema step) or {{checkpoint_key.output}}. Fields left out keep their value. The answer says whether it is valid and lists problems and warnings; fix them and save again. Saving costs nothing and runs nothing.

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": "save_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
stepsNoThe full ordered list of stages and checkpoints.
descriptionNo
pipeline_idNoThe pipeline to change. Leave out to create one.
start_inputsNoThe full list of start inputs (text only). Replaces the current list.
max_spend_usdNoSpend cap for one run, in US dollars.
time_limit_minutesNoWork-time limit for one run (checkpoint waits do not count).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the crucial replace semantics: steps omitted are removed, steps are matched by key, start_inputs replaces the current list, and omitted fields keep their value. It also explains what the response contains (validity plus problems and warnings) and that saving has no cost and triggers no run, none of which is derivable from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The create-or-update distinction is front-loaded and no sentence is pure filler. The reference-syntax sentence is dense and packs three forms into one line, which is efficient but slightly hard to parse on first read.

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 seven-parameter upsert tool with no output schema, the description covers the two modes, the full-replacement semantics of steps and start_inputs, the templating language, and the shape of the returned validation result. Nothing an agent needs to call it correctly or interpret the response is missing.

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?

With 71% schema coverage the schema already documents most fields, yet the description adds real meaning on top: the {{start_input}} / {{stage_key.output.field}} / {{checkpoint_key.output}} reference grammar, how stages map inputs to workflow start inputs, and that steps are keyed for matching. It adds little about max_spend_usd or time_limit_minutes, but those are self-explanatory in the schema.

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 first sentence states a precise verb and resource ('Create a pipeline ... or change one') and makes the create-vs-update switch explicit through the presence or absence of pipeline_id. It also names the sibling get_pipeline as the source of the canonical steps shape, so an agent can tell which tool to use for reading versus writing.

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?

It clearly says when to create (omit pipeline_id) and when to update (supply pipeline_id), and gives the follow-up loop: validation returns problems and warnings, fix them and save again. What it does not say explicitly is that running the pipeline is a different tool; the line 'Saving costs nothing and runs nothing' only implies that separation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources