Skip to main content
Glama

Cancel run

cancel_run
DestructiveIdempotent

Stop a run that is still going: one run_pipeline, assemble_video or edit_asset started. Use it when the person asks to cancel, stop or kill a render, including "stop, that's wrong" about one they can see running. A render that is rendering stops once its current step finishes (status "cancelling", then "cancelled" in get_run); one still waiting to start is closed at once and costs nothing. Steps that already finished keep their output and are not refunded. Leave out runId to cancel the pipeline's newest running run. Needs the pipelines:run scope.

Input Schema

NameRequiredDescriptionDefault
runIdNoThe run to stop. Omit for the newest run still going.
pipelineIdYesThe pipelineId the run was started under (for assemble_video and edit_asset, the one they returned).

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?

Goes well beyond the annotations (destructive/idempotent/not-readonly) by disclosing the exact cancellation semantics: a rendering run stops after its current step with status 'cancelling' then 'cancelled', a queued run closes immediately at no cost, and already-finished steps are kept but not refunded. This is precisely the behavioral detail an agent needs before firing a destructive call.

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 scope, then layered with outcomes and the scope requirement. Everything earns its place, though the density of clauses makes it slightly heavier than a tight two-sentence definition.

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 destructive tool with no output schema, the description covers the trigger, the effect on both running and queued runs, cost/refund behavior, status observability via get_run, the runId default, and the required pipelines:run scope. Nothing material is missing.

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%, so the schema already documents both runId (omit for newest running run) and pipelineId. The description echoes the omit-runId default and the pipelineId origin, adding little beyond the structured fields, so the baseline 3 applies.

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 (cancel/stop) and resource (run), and explicitly scopes it to runs started by run_pipeline, assemble_video, or edit_asset. An agent can distinguish this from get_run or any of the creation siblings without opening a schema.

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?

Explicitly states when to use it ('when the person asks to cancel, stop or kill a render'), including an edge trigger ('stop, that's wrong'). It also points to get_run for observing the resulting status, giving both the trigger condition and the follow-up tool.

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.