Skip to main content
Glama

cancel_run

Cancel a goal's ongoing run. For the quarterdeck-goals plugin only; agents and models must not invoke it.

Instructions

Cancels a goal's run in progress. For the quarterdeck-goals plugin only: agents and the model must not call this.

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

Input Schema

NameRequiredDescriptionDefault
reasonNo
goal_idYes
run_scopeNoA goal run passes its run id here; anyone else leaves it out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.32.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so this description carries the full behavioral burden. It correctly signals that this is a mutating operation and adds the critical access restriction, but it is silent on what happens to an in-progress run's state, whether cancellation is reversible, and what permissions or side effects are involved.

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 the core action front-loaded and the access restriction immediately following. There is no filler and nothing that could be cut without losing meaning.

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?

It does the single most important thing for a cancel tool with no annotations by warning agents off, but it leaves parameter meaning and post-cancellation behavior unexplained. For a three-parameter mutation with no output schema, that is only partially adequate.

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?

Schema description coverage is only 33%, with just run_scope documented ('A goal run passes its run id here; anyone else leaves it out'). The description never explains goal_id or reason, so the undocumented parameters are left ambiguous in both schema and prose.

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?

The description gives a specific verb and resource ('Cancels a goal's run in progress'), which is concrete enough to act on. However, it never distinguishes this from near-siblings like end_run, fail_run, or report_run_end, so an agent must infer how cancellation differs from those operations.

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?

It states an explicit when-not-to-use rule: 'For the quarterdeck-goals plugin only: agents and the model must not call this.' That is an unusually direct exclusion that steers the agent away from misuse. It does not name the tool an agent should reach for instead when a run must be aborted, 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.