Skip to main content
Glama
philogicae

rqbit Torrent Client MCP

get_torrent_details

Retrieve torrent details, including metadata and status, by specifying the torrent ID or infohash using the rqbit Torrent Client MCP API.

Instructions

Get details for a specific torrent by its ID or infohash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
torrent_idYes

Implementation Reference

  • MCP tool handler for 'get_torrent_details'. Decorated with @mcp.tool() for registration. Calls RqbitClient.get_torrent_details and serializes to JSON or returns error.
    @mcp.tool() async def get_torrent_details(torrent_id: str) -> str: """Get details for a specific torrent by its ID or infohash.""" logger.info(f"Getting details for torrent: {torrent_id}") result = await rqbit_client.get_torrent_details(torrent_id) if isinstance(result, str): error = f"Error getting torrent details {torrent_id}: {result}" logger.error(error) return error return dumps(result)
  • Core implementation in RqbitClient wrapper that performs the HTTP GET request to the rqbit API endpoint /torrents/{id_or_infohash}.
    async def get_torrent_details(self, id_or_infohash: str) -> dict[str, Any] | str: """Get details for a specific torrent.""" return await self._safe_request("GET", f"/torrents/{id_or_infohash}") # type: ignore
  • Tool registration via @mcp.tool() decorator in FastMCP.
    @mcp.tool() async def get_torrent_details(torrent_id: str) -> str: """Get details for a specific torrent by its ID or infohash.""" logger.info(f"Getting details for torrent: {torrent_id}") result = await rqbit_client.get_torrent_details(torrent_id) if isinstance(result, str): error = f"Error getting torrent details {torrent_id}: {result}" logger.error(error) return error return dumps(result)

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