Skip to main content
Glama

Cancel a pipeline run

cancel_pipeline_run
Destructive

Stop a pipeline run that is still going or waiting at a checkpoint. Only when the person asks.

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

Input Schema

NameRequiredDescriptionDefault
pipeline_run_idYesThe pipeline run to stop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is known. The description adds value beyond that by noting the confirmation requirement ('Only when the person asks') and the effect boundary (only runs that are in-flight or parked at a checkpoint), which is not encoded in any structured field. It stops short of saying whether cancellation is reversible or what happens to completed steps and artifacts.

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?

Two short sentences with no filler, and the primary action is front-loaded before the usage constraint. The phrase 'the person' is slightly ambiguous about whose request qualifies, which costs a point but does not add bulk.

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

Completeness4/5

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

For a single-parameter destructive action with rich annotations and no output schema, this covers action, eligible state, and confirmation. What is missing is post-cancellation behavior — whether the run can be restarted, what terminal state it lands in, and whether downstream work is orphaned — which matters for a destructive, non-idempotent tool.

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 there is a single required parameter, so the schema already carries the meaning. The description's scope clause implies which run IDs are eligible ('still going or waiting'), but adds no format, source, or lookup guidance. Baseline 3 is appropriate.

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 a specific verb and resource ('Stop a pipeline run') plus a scope qualifier ('still going or waiting at a checkpoint'), so the agent knows exactly which state of run this affects. It does not, however, distinguish itself from the sibling 'cancel_run', leaving ambiguity about which cancellation entry point applies to pipelines.

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?

'Only when the person asks' gives a real gating condition for when to invoke, which is more than most tools offer. But there is no guidance on when not to use it, no mention of the overlapping sibling 'cancel_run', and no pointer to 'rerun_pipeline' or 'get_pipeline_run' for follow-up or verification.

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