Skip to main content
Glama
philogicae

rqbit Torrent Client MCP

forget_torrent

Remove a torrent from the rqbit Torrent Client MCP list while preserving downloaded files, ensuring your data remains intact.

Instructions

Forget a torrent, keeping the files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_idYes

Implementation Reference

  • MCP tool handler for forget_torrent. This is the main entry point for the tool, decorated with @mcp.tool(). It calls the RqbitClient's forget_torrent method and handles the response, returning a success message or error.
    @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
  • Helper method in RqbitClient wrapper that performs the actual HTTP POST request to the rqbit API endpoint /torrents/{id}/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()

Other Tools

Related Tools

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