Skip to main content
Glama

cancel_runbook_run

Stops a runbook run you started, interrupting running commands, closing connections, and marking unstarted steps as cancelled. Only your own active runs can be cancelled.

Instructions

Stops a runbook run you started: running commands are interrupted, the connections are closed and steps that had not run are marked cancelled. A run that has already finished is reported as it ended, not an error. You can only cancel runs you started.

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": {
      "runId": "<runId>"
    },
    "name": "cancel_runbook_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYesThe runId run_runbook or run_snippet returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the concrete effects (commands interrupted, connections closed, unrun steps marked cancelled), the permission constraint (own runs only), and the non-error behavior for completed runs. It does not say what a second cancel of an already-cancelled run does, leaving one behavioral edge unresolved.

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?

Three short sentences, front-loaded with the action and its side effects, then the edge case, then the permission constraint. No sentence is redundant and nothing important is buried.

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 one-parameter mutation with no annotations and no output schema, the definition covers effects, ownership restriction, and the already-finished case — everything an agent needs to invoke it correctly. Return-value detail is unnecessary since no output schema is declared.

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 coverage is 100% and the single runId parameter already documents both its meaning and its provenance ("returned by run_runbook or run_snippet"). The description adds no format or constraint detail beyond that, so 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 ("Stops") and resource ("a runbook run"), plus the ownership scope ("you started"), which distinguishes it cleanly from read-only siblings like get_runbook_run or describe_host. The first clause alone tells an agent exactly what the tool does.

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?

Gives clear usage context: only runs the caller started may be cancelled, and an already-finished run returns its end state rather than erroring, which tells the agent it need not pre-check status. It stops short of naming when to prefer an alternative call, so it lands at 4 rather than 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.