Skip to main content
Glama
philogicae

rqbit Torrent Client MCP

forget_torrent

Remove a torrent from the rqbit client's active list while preserving downloaded files on your system.

Instructions

Forget a torrent, keeping the files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_idYes

Implementation Reference

  • MCP tool handler for the 'forget_torrent' tool. Decorated with @mcp.tool() for registration. Calls the RqbitClient wrapper method and handles response with logging and error messages.
    @mcp.tool() async def forget_torrent(torrent_id: str) -> str: """Forget a torrent, keeping the files.""" logger.info(f"Forgetting torrent: {torrent_id}") result = await rqbit_client.forget_torrent(torrent_id) if isinstance(result, str): error = f"Error forgetting torrent {torrent_id}: {result}" logger.error(error) return error return "Successfully forgot torrent " + torrent_id
  • Supporting method in RqbitClient wrapper that performs the HTTP POST request to the rqbit API endpoint /torrents/{id_or_infohash}/forget to forget the torrent.
    async def forget_torrent(self, id_or_infohash: str) -> None | str: """Forget a torrent, keeping the files.""" return await self._safe_request("POST", f"/torrents/{id_or_infohash}/forget")
  • The @mcp.tool() decorator registers the forget_torrent function as an MCP tool.
    @mcp.tool()

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/philogicae/rqbit-mcp'

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