Skip to main content
Glama

pause_torrent

Pause active torrent downloads to temporarily stop data transfer and conserve bandwidth or system resources.

Instructions

Pause a torrent.

Args: torrent_hash: Hash of the torrent to pause

Returns: Status message

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_hashYes

Implementation Reference

  • main.py:220-238 (handler)
    The pause_torrent tool handler function, decorated with @mcp.tool() for registration. It pauses the specified torrent using the qBittorrent client and returns a status dictionary.
    @mcp.tool() def pause_torrent(torrent_hash: str) -> dict[str, str]: """ Pause a torrent. Args: torrent_hash: Hash of the torrent to pause Returns: Status message """ client = get_qbt_client() try: client.torrents_pause(torrent_hashes=torrent_hash) return {"status": "success", "message": f"Torrent {torrent_hash} paused"} except Exception as e: return {"status": "error", "message": str(e)}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jabberjabberjabber/qbit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server