Skip to main content
Glama

Run a pipeline

run_pipeline
Destructive

Start a pipeline run. Runs cost money, so: call it first without approved to get the cost and the inputs it would use, tell the person, and only call again with approved: true after they say yes. Returns a pipeline_run_id; then call get_pipeline_run every 20 seconds or so. When the run stops at a checkpoint, show the person what it asks and send their own answer with answer_checkpoint.

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": {
      "pipeline_id": "<pipeline_id>"
    },
    "name": "run_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNoStart input values keyed by input name (see get_pipeline start_inputs). Inputs left out use their example value.
approvedNotrue only after the person has agreed to this run and its cost.
pipeline_idYesThe pipeline to run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint: true and openWorldHint: true, but the description adds the crucial context those hints lack: runs incur monetary cost, so a human confirmation gate is required before committing. It also discloses the return value (pipeline_run_id), the recommended polling cadence, and the checkpoint interruption behavior — genuinely new behavioral information.

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?

Front-loaded with the core action and cost warning, and every sentence carries information about a distinct step. It is slightly dense and run-on with colons and semicolons, but there is no filler and no repetition of the schema or annotations.

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 cost-incurring, non-idempotent mutation with no output schema, the description supplies everything an agent needs: the approval protocol, the returned id, the polling tool and interval, and the checkpoint handoff path. There is no significant gap left for an agent to guess at.

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?

Schema coverage is 100% and already documents all three parameters, so the baseline would be 3. The description nonetheless adds operational meaning to 'approved' (the dry-run-first protocol, what withholding it returns) and to the inputs/example-value relationship, which goes beyond the terse schema text.

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?

Uses a specific verb+resource ('Start a pipeline run') and immediately distinguishes this action from the downstream siblings get_pipeline_run and answer_checkpoint by describing what happens after the call. An agent can tell this is the entry point of a run lifecycle rather than a status check or a resume action.

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?

Gives an explicit two-phase protocol: call first without 'approved' to fetch cost and resolved inputs, confirm with the human, then call again with approved: true. It also routes to the right siblings for polling (get_pipeline_run) and checkpoint handling (answer_checkpoint), leaving nothing to inference.

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