Skip to main content
Glama

Abort run

abort_run
DestructiveIdempotent

Stops a run. A queued run ends at once as aborted; a running run stops at its next page boundary (abort_requested is true until then). Records it committed stay readable, and charged, through get_run_items and get_run_result. Returns the run, whose status becomes aborted. A run that already ended is returned unchanged.

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

Input Schema

NameRequiredDescriptionDefault
run_idYes

Output Schema

NameRequiredDescriptionDefault
errorNo
linksYes
limitsYes
run_idYes
statusYes
surfaceYes
progressYes
source_idYes
created_atYes
started_atYes
finished_atYes
stop_reasonYes
units_chargedYes
abort_requestedYes
definition_versionYes
poll_after_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), it discloses the asynchronous stop semantics, the abort_requested flag that signals in-flight abort, that committed records remain readable and still billed, and the returned status. That is exactly the mutation-impact context annotations cannot convey.

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?

Four tight sentences, front-loaded with the action and immediately followed by the state-dependent behavior. No filler, though the return-value clause slightly overlaps what the output schema already covers.

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 single-parameter mutation with an output schema, the description covers outcome, timing, side effects on committed data, and the idempotent edge case. Nothing needed to call it correctly 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?

Only run_id is accepted and the description never mentions it, so nothing is added beyond the schema. The regex pattern ^[a-f0-9]{32}$ at least constrains the value in the schema, which keeps this at baseline rather than lower.

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?

"Stops a run" is a specific verb plus resource, and the following sentences make the scope (queued vs running vs already-ended) unmistakable, so an agent can separate it from read-only siblings such as get_run or get_run_result.

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?

The description delimits the states in which aborting is meaningful (queued ends at once, running stops at next page boundary) and states the when-not case: a run that already ended is returned unchanged, i.e. the call is a no-op. It gives no explicit routing to alternatives, but no competing tool is suggested as a substitute.

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.