Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

cancel_worker_item

Cancel the item a Tdarr worker is processing and return that file to the queue while the worker stays alive and picks up the next item.

Instructions

Cancel the item a worker is currently processing (POST /api/v2/cancel-worker-item). The worker stays alive and picks up the next item; the cancelled file goes back to the queue.

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": {
      "node_id": "<node_id>",
      "worker_id": "<worker_id>",
      "cause": "<cause>"
    },
    "name": "cancel_worker_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
causeYesReason recorded against the cancellation
node_idYesNode ID, from list_nodes
worker_idYesWorker ID, from the node's workers in list_nodes(detailed)

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A3.6/5.0
Behavior3/5

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

Adds genuine behavior beyond the annotations: the worker survives and the cancelled file returns to the queue, which tells the agent the effect is recoverable rather than destructive. It omits other relevant traits such as whether processing is interrupted immediately, what permissions are needed, or what happens to partially written output.

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 tight sentences, front-loaded with the action, with the endpoint in parentheses as secondary detail. Nothing is wasted, though the parenthetical is marginally redundant for an agent.

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 3-required-parameter mutation with fully documented schema, the description covers the action and its aftermath well. It does not indicate the success/failure response shape, and there is no output schema to fall back on, leaving a modest gap.

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 description coverage is 100%, so node_id, worker_id and cause are already documented in the schema, including where to obtain the IDs. The description adds no meaning beyond that, so baseline 3 applies.

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?

Specific verb+resource: 'Cancel the item a worker is currently processing', with the exact endpoint named. It also implicitly scopes out the nearby alternative of killing the worker by stating 'The worker stays alive', though it does not name a sibling tool explicitly.

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?

Clear context for when to use it — you want the current item abandoned but the worker kept running and the file requeued — which is exactly the decision-relevant distinction versus a worker/scanner kill. It stops short of explicit when-not guidance or naming an alternative tool.

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