radarr_get_download_clients
Retrieve configured download client settings from Radarr to manage movie downloads and monitor connection status.
Instructions
Get download client configurations from Radarr (Movies). Shows configured clients and their settings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:136-142 (registration)Registration of the 'radarr_get_download_clients' tool (dynamic via serviceName='radarr') in addConfigTools function, including name, description, and empty input schemaname: `${serviceName}_get_download_clients`, description: `Get download client configurations from ${displayName}. Shows configured clients and their settings.`, inputSchema: { type: "object" as const, properties: {}, required: [], },
- src/index.ts:883-910 (handler)Handler logic for radarr_get_download_clients: parses service name, retrieves RadarrClient, calls getDownloadClients(), formats and returns JSON response with client detailscase "sonarr_get_download_clients": case "radarr_get_download_clients": case "lidarr_get_download_clients": case "readarr_get_download_clients": { const serviceName = name.split('_')[0] as keyof typeof clients; const client = clients[serviceName]; if (!client) throw new Error(`${serviceName} not configured`); const downloadClients = await client.getDownloadClients(); return { content: [{ type: "text", text: JSON.stringify({ count: downloadClients.length, clients: downloadClients.map(c => ({ id: c.id, name: c.name, implementation: c.implementationName, protocol: c.protocol, enabled: c.enable, priority: c.priority, removeCompletedDownloads: c.removeCompletedDownloads, removeFailedDownloads: c.removeFailedDownloads, tags: c.tags, })), }, null, 2), }], }; }
- src/arr-client.ts:540-545 (helper)Core helper method getDownloadClients() in ArrClient (inherited by RadarrClient) that makes API request to /downloadclient endpoint/** * Get download clients */ async getDownloadClients(): Promise<DownloadClient[]> { return this.request<DownloadClient[]>('/downloadclient'); }
- src/arr-client.ts:326-342 (schema)TypeScript interface defining DownloadClient structure used for typing API response and output formattingexport interface DownloadClient { id: number; name: string; implementation: string; implementationName: string; configContract: string; enable: boolean; protocol: string; priority: number; removeCompletedDownloads: boolean; removeFailedDownloads: boolean; fields: Array<{ name: string; value: unknown; }>; tags: number[]; }
- src/index.ts:176-176 (registration)Conditional call to addConfigTools for 'radarr' service, which registers the radarr_get_download_clients tool if Radarr client is configured (via env vars RADARR_URL/API_KEY)if (clients.radarr) addConfigTools('radarr', 'Radarr (Movies)');