Skip to main content
Glama

Change and re-run a pipeline

rerun_pipeline
Destructive

Run a finished pipeline run again as a new revision, with changed start inputs or checkpoint answers, or with chosen stages forced to run again. Only what the change affects runs again; the rest is reused, and approved answers are kept unless keep_answers says otherwise. Call it first without approved: it returns the plan (which stages run, which are reused, which answers are kept or asked again) and the cost. Show the person, and call again with approved: true and the same changes only after they say yes.

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_run_id": "<pipeline_run_id>"
    },
    "name": "rerun_pipeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
rerunNoStage keys to run again even if nothing they use changed.
answersNoNew checkpoint answers from the person, keyed by checkpoint key, each in its answer_shape.
approvedNotrue only after the person has agreed to the plan and its cost.
retry_fromNoRetry from here: this stage key and everything after it run again; every stage before it keeps its result, even if its workflow was edited since.
keep_answersNoCheckpoint keys whose earlier answers to keep; the others are asked again. Leave out to keep them all.
start_inputsNoOnly the start inputs to change, keyed by input name.
pipeline_run_idYesThe finished run to change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / retry_from
      Added value: +{
      +  "description": "Retry from here: this stage key and everything after it run again; every stage before it keeps its result, even if its workflow was edited since.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds substantial context: only affected stages re-run, the rest is reused, approved answers survive unless keep_answers says otherwise, and a first call returns a plan plus cost without side effects. That is exactly the reuse-versus-rerun and cost-preview behavior an agent needs before an irreversible call.

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?

Three front-loaded sentences with no filler: the effect first, the reuse semantics second, the two-phase approval protocol last. Every sentence carries information not already in the schema.

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 7-parameter, nested-object, destructive tool with no output schema, the description covers the missing return shape by describing the plan (stages run, reused, answers kept or asked again) and the cost. The safety-critical two-step flow is fully specified.

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%, so the baseline is 3; the description nonetheless adds meaning the schema lacks, chiefly that omitting 'approved' produces a dry-run plan and that 'approved' must accompany the identical changes after human consent. It also reinforces that only changed start inputs are passed, not the whole set.

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?

States a specific verb and resource ('Run a finished pipeline run again as a new revision') and scopes it precisely to changed start inputs, checkpoint answers, or forced stages. The word 'finished' plus 'new revision' separates it from starting a fresh run, so an agent can tell it apart from run_pipeline without opening either schema.

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?

Gives an explicit procedural rule: call first without 'approved' to get the plan and cost, show the person, then call again with approved:true and the same changes only after consent. It also explains when to use rerun, retry_from, and keep_answers via the schema. It does not name when to prefer a sibling like retry_run or run_pipeline instead, which keeps it from a 5.

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