Skip to main content
Glama
qb-mcp

qb-mcp

qb_set_share

Set per-torrent ratio and seeding-time limits to control when they stop or switch to super-seeding. Update share rules for specific torrents.

Instructions

Set ratio and/or seeding-time limits for specific torrents.

Args: instance: instance key from .instances.json. hashes: torrent hashes to update. ratio: maximum ratio; -1 means unlimited, -2 means use the global value. seeding_time: maximum seeding time in MINUTES (qBittorrent's unit); -1 unlimited, -2 use global (default). inactive_seeding_time: maximum inactive seeding time in MINUTES; -1 unlimited, -2 use global (default). action: what to do once a limit is reached - "stop" (default) or "enable_super_seeding". Removal is deliberately not offered here; use qb_remove for anything destructive. mode: how the limits combine - "default" (inherit), "any" (stop when either limit is reached) or "all" (both). Only qBittorrent 5.3+ honours it; older versions ignore the field.

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": {
      "instance": "<instance>",
      "hashes": "<hashes>"
    },
    "name": "qb_set_share"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNodefault
ratioNo
actionNostop
hashesYes
instanceYes
seeding_timeNo
inactive_seeding_timeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it states units (seeding times in MINUTES, noting qBittorrent's unit), that -2 inherits the global value, and that mode is only honoured on qBittorrent 5.3+ while older versions silently ignore it. That version-compatibility caveat is exactly the kind of behaviour an agent cannot infer from any structured field.

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?

A one-sentence summary handles purpose up front, then a tight Args block where every line adds information an agent needs (units, sentinel values, enum meanings, version caveat). No filler or restatement of the tool name.

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 7-parameter mutation tool with zero annotations and zero schema descriptions, this is close to complete; an output schema exists so return values need no explanation. It stops short of saying what happens on unknown hashes or an invalid instance key, or whether limits persist after the torrent stops, which are the remaining unknowns for a setter.

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% across 7 parameters, so the description must compensate, and it documents every field: instance, hashes, ratio (-1 unlimited / -2 global), seeding_time and inactive_seeding_time with units, action values ("stop", "enable_super_seeding") and mode values ("default", "any", "all"). One minor wrinkle: ratio is described as defaulting to -2 (global) while the schema default is null, which an agent may need to reconcile.

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?

"Set ratio and/or seeding-time limits for specific torrents" gives a concrete verb (set), resource (share limits: ratio/seeding time) and scope (specific torrents, i.e. per-hash rather than global). An agent can distinguish this from the global qb_set_limit and from the destructive qb_remove without opening any schema.

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?

It explicitly rules out destructive use ("Removal is deliberately not offered here; use qb_remove for anything destructive"), which is a genuine when-not rule pointing at a named alternative. What is missing is guidance on preferring this per-torrent tool over the likely global qb_set_limit; that choice is only implied by the word "specific".

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