Skip to main content
Glama
qbittorrent-mcp

qbittorrent-mcp

qbittorrent_torrents

Control qBittorrent downloads by listing, adding, pausing, resuming, deleting, rechecking, renaming, moving, and editing trackers, peers, files, and locations through operation-based calls.

Instructions

qbittorrent torrents operations on qBittorrent. Pass operation and an arguments dict matching that operation's parameters.

  • qbittorrent_torrent_contents(hash, indexes='') — Files of one torrent: index, name, size, progress, priority (0 skip, 1 normal, 6 high, 7 maximal), is_seed, piece_range, availability. Pass indexes (pipe-separated) to fetch only those files.

  • qbittorrent_torrent_piece_hashes(hash) — SHA1 hashes of all pieces of one torrent, in order.

  • qbittorrent_torrent_piece_states(hash) — Piece states of one torrent as ints: 0 not downloaded, 1 downloading, 2 downloaded.

  • qbittorrent_torrent_properties(hash) — Generic properties of one torrent: save_path, creation/completion dates, total uploaded/downloaded, seeding_time, share_ratio, speeds, peer counts, isPrivate, etc. 404 if the hash is not found.

  • qbittorrent_torrent_trackers(hash) — Trackers of one torrent: url, status (0 disabled, 1 not contacted yet, 2 working, 3 updating, 4 not working), tier, peer/seed/leech counts, msg.

  • qbittorrent_torrent_web_seeds(hash) — Web seeds of one torrent (array of {url}).

  • qbittorrent_torrents_add(urls='', torrent_b64='', save_path='', category='', tags='', skip_checking=None, paused=None, root_folder=None, rename='', up_limit=None, dl_limit=None, ratio_limit=None, seeding_time_limit=None, auto_tmm=None, sequential_download=None, first_last_piece_prio=None) — Add torrents. urls is one or more http(s)/magnet/bc:// links separated by newlines. Alternatively (or additionally) pass one raw .torrent file base64-encoded in torrent_b64. Optional: save_path, category, tags (comma-separated), skip_checking, paused, root_folder, rename, up_limit / dl_limit (bytes/s), ratio_limit, seeding_time_limit (minutes), auto_tmm, sequential_download, first_last_piece_prio.

  • qbittorrent_torrents_add_peers(hashes, peers) — Add peers to torrents. hashes is pipe-separated or "all"; peers is one or more host:port values separated by a pipe.

  • qbittorrent_torrents_add_trackers(hash, urls) — Add trackers to a torrent. urls is one or more tracker URLs separated by newlines.

  • qbittorrent_torrents_delete(hashes, delete_files=False) — Delete torrents. hashes is pipe-separated or "all". With delete_files=true the downloaded data is deleted from disk too -- this is irreversible.

  • qbittorrent_torrents_edit_tracker(hash, url, new_url) — Replace a tracker URL on a torrent with new_url.

  • qbittorrent_torrents_list(filter='', category='', tag='', sort='', reverse=None, limit=None, offset=None, hashes='') — List torrents matching the given filters. filter is one of all, downloading, seeding, completed, stopped, active, inactive, running, stalled, stalled_uploading, stalled_downloading, errored. category/tag filter by them (empty string = "without category/tag"). sort by any response field; reverse for descending order. limit/offset for paging; hashes (pipe-separated or "all") to select specific torrents.

  • qbittorrent_torrents_pause(hashes) — Pause (stop) torrents. hashes is pipe-separated or "all".

  • qbittorrent_torrents_reannounce(hashes) — Reannounce torrents to their trackers. hashes is pipe-separated or "all".

  • qbittorrent_torrents_recheck(hashes) — Force recheck of torrents. hashes is pipe-separated or "all".

  • qbittorrent_torrents_remove_trackers(hash, urls) — Remove trackers from a torrent. urls is one or more URLs separated by a pipe.

  • qbittorrent_torrents_rename_file(hash, old_path, new_path) — Rename a file inside a torrent (relative paths from the torrent root).

  • qbittorrent_torrents_rename_folder(hash, old_path, new_path) — Rename a folder inside a torrent (relative paths from the torrent root).

  • qbittorrent_torrents_resume(hashes) — Resume (start) torrents. hashes is pipe-separated or "all".

  • qbittorrent_torrents_set_auto_management(hashes, enable) — Enable/disable Automatic Torrent Management for torrents (hashes pipe-separated or "all").

  • qbittorrent_torrents_set_location(hashes, location) — Move torrents to a new download location on disk. hashes is pipe-separated or "all"; location is the destination directory.

  • qbittorrent_torrents_set_name(hash, name) — Rename a torrent (display name only, does not touch files on disk).

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": {
      "operation": "<operation>"
    },
    "name": "qbittorrent_torrents"
  }
}

Input Schema

NameRequiredDescriptionDefault
argumentsNo
operationYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4/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 disclosure burden and does well: it flags delete_files=true as irreversible disk deletion, notes that set_name is display-name only and does not touch files, documents the 404 behavior on torrent_properties, and decodes status/priority/piece-state integer codes. It leaves gaps on permissions/auth, idempotency of pause/resume, and whether add deduplicates existing torrents.

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?

The dispatcher contract is front-loaded in two sentences, then a scannable bullet per operation with the argument list inline. It is long, but for 22 operations with undocumented arguments each line earns its place; only the redundant opening phrase and a few duplicated 'pipe-separated or all' clauses could be trimmed.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity multiplexed tool with a free-form arguments bag, the definition covers every operation and its parameters, and an output schema exists so return values need not be restated. Remaining omissions are minor: how to shape `arguments` when an operation takes none, and general error/permission behavior across operations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and `arguments` is an unconstrained object, so the description must supply all parameter meaning — and it does, for every operation: newline vs pipe separators, 'all' sentinel, bytes/s vs minutes units, base64 .torrent input, priority codes, and empty-string category/tag semantics. This is far beyond what the schema alone conveys.

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 opening names the resource (qBittorrent torrents) and the dispatcher pattern (operation + arguments), and the 22-item enumeration makes the covered surface unambiguous. It stops short of 5 because the lead sentence is near-tautological ('qbittorrent torrents operations on qBittorrent') and nothing explicitly separates this from siblings like qbittorrent_torrent_limits, whose limits fields (up_limit, dl_limit, ratio_limit) also appear in torrents_add.

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 implied by the operation menu: an agent can infer that torrents_pause stops seeding and torrents_delete removes, and a few entries carry conditional hints ('Pass indexes to fetch only those files', 'Alternatively (or additionally) pass one raw .torrent file'). However, there is no explicit when-to-use guidance relative to alternative tools, and no exclusions or prerequisites are stated.

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