Skip to main content
Glama

Cancel run

cancel_run
Destructive

Stop a run that is running or waiting. A stopped run cannot be resumed.

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": {
      "run_id": "<run_id>"
    },
    "name": "cancel_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and readOnlyHint=false, so the safety profile is covered structurally. The description's added value is the terminal consequence ('cannot be resumed'), but it omits what happens to in-flight work, whether partial results survive, and what error an already-finished run yields.

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?

Two short sentences with zero filler, and the eligibility condition is front-loaded ahead of the irreversibility warning. Nothing could be trimmed without losing information.

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

Completeness3/5

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

For a single-parameter destructive mutation, the description covers purpose and irreversibility, and annotations cover the safety hints. It is still incomplete on the lone parameter's semantics, error behavior for non-cancellable runs, and the resulting state, none of which is documented anywhere else since there is no output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one required parameter, run_id, and schema description coverage is 0%, so the description carries the full burden of explaining it. The description never mentions run_id or clarifies acceptable formats (run ID vs. name) or whether IDs from list/search tools are required.

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 ('Stop') and resource ('run') plus the precondition states ('running or waiting'), so an agent can tell it acts on live runs rather than completed ones. It does not differentiate itself from the similarly named sibling cancel_eval_suite, leaving that distinction to inference.

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?

The description implies when the tool applies by naming the eligible run states, which is useful scoping. It offers no explicit when-not guidance and names no alternative for cases such as inspecting a run (get_run) or answering one (answer_run).

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.