Skip to main content
Glama

op_cancel

Stops a pending or running file operation by its id, useful when a queued task must be halted. Some operations finish what they start and cannot be cancelled.

Instructions

Stop one of your pending or running operations. FINISHED: it has already ended; NOT_CANCELLABLE: it is one that finishes what it starts (a rename, a restore, a permanent delete).

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": {
      "id": "<id>"
    },
    "name": "op_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe operation's id (op.id from the tool that queued it, or ops_list)

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose the two failure outcomes (already-finished, not-cancellable) and names the class of irrevocable operations (rename, restore, permanent delete) that will refuse cancellation. It still omits permissions required, idempotency, and what happens to partial progress, so it is strong but not complete.

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?

Two short sentences, with the core action front-loaded and no filler. The second sentence is terse to the point of ambiguity – it is not immediately clear that FINISHED/NOT_CANCELLABLE are returned status values, and 'it is one that finishes what it starts' is an awkward gloss on non-cancellable operations.

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?

An output schema exists, so return values needn't be explained, and the single parameter is covered by the schema. For an unannotated mutation tool, though, an agent would still benefit from knowing permission requirements and whether repeated cancellation attempts are safe; the description stops short of that.

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 parameter is fully documented in the schema, including where to obtain the id (op.id or ops_list). The description adds nothing about the parameter, which is the expected baseline when the schema does the work.

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 ('Stop ... operations') plus the scope ('pending or running'), which immediately tells an agent what the tool does. It does not name or distinguish itself from the obvious sibling op_get, so it falls just short of a 5.

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?

Usage is only implied: 'pending or running' signals the applicable state, but there is no explicit statement of when to prefer this over op_get or when it is inappropriate to call. The FINISHED/NOT_CANCELLABLE notes read as outcome codes rather than routing guidance.

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