Skip to main content
Glama
qbittorrent-mcp

qbittorrent-mcp

by akioruri

set_file_priority

Set the download priority for a specific torrent file using its hash and file ID, so you can skip, normalize, or prioritize individual files.

Instructions

Set file priority

Args: hash: Torrent hash value id: correspond to file position inside the array returned by torrent contents API, e.g. id=0 for first file, id=1 for second file, etc. priority: Value Description 0 Do not download 1 Normal priority 6 High priority 7 Maximal priority

Returns: Result message of setting file priority HTTP Status Code Scenario 400 Priority is invalid 400 At least one file id is not a valid integer 404 Torrent hash was not found 409 Torrent metadata hasn't downloaded yet 409 At least one file id was not found 200 All other scenarios

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": {
      "hash": "<hash>",
      "id": "<id>",
      "priority": "<priority>"
    },
    "name": "set_file_priority"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
hashYes
priorityYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It lists HTTP status codes and their meanings, which is useful behavioral context (invalid priority, unknown hash, missing metadata). But it doesn't clarify whether priority applies permanently, whether it affects only the current download task, or permissions needed. The status-code table is the main behavioral contribution but only covers error scenarios.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The parameter explanations and priority table earn their place, but the long status-code table is verbose and could be condensed. The description reads like raw docstring output with 'Args:' and 'Returns:' headers that aren't optimized 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?

Has an output schema so return values needn't be explained, but the description still includes a full status-code table. Missing: whether priority applies to downloads only, whether the torrent must be active, and any prerequisites. For a 3-required-param mutation tool with no annotations, this is adequate but incomplete.

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

Parameters4/5

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

Schema description coverage is 0% and the schema only has bare titles. The description compensates significantly: it explains hash is a torrent hash, id maps to positions in the torrent contents array (with concrete examples), and priority is fully enumerated with a value table. This is strong parameter semantics despite the poor schema.

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?

States a specific verb+resource: 'Set file priority'. However, the description never states the scope — e.g., that it targets a specific file in a specific torrent — nor distinguishes it from sibling tools like get_torrent_files. Purpose is clear but no sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use guidance. The priority value table implies intent (skip download, normal, high, maximal), but the description never says when an agent should escalate priority versus leave defaults, nor names alternatives.

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