radarr_get_health
Check Radarr for health warnings and issues to identify application problems and maintain system stability.
Instructions
Get health check warnings and issues from Radarr (Movies). Shows any problems detected by the application.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:117-125 (registration)Tool registration and schema definition for radarr_get_health (dynamically generated via serviceName='radarr'). Defines name, description, and empty input schema.{ name: `${serviceName}_get_health`, description: `Get health check warnings and issues from ${displayName}. Shows any problems detected by the application.`, inputSchema: { type: "object" as const, properties: {}, required: [], }, },
- src/index.ts:176-176 (registration)Conditional registration call that adds the radarr_get_health tool to the TOOLS array if Radarr client is configured.if (clients.radarr) addConfigTools('radarr', 'Radarr (Movies)');
- src/index.ts:830-853 (handler)Primary handler logic for executing the radarr_get_health tool. Parses service, fetches health via client.getHealth(), formats JSON response with issues summary.case "sonarr_get_health": case "radarr_get_health": case "lidarr_get_health": case "readarr_get_health": { const serviceName = name.split('_')[0] as keyof typeof clients; const client = clients[serviceName]; if (!client) throw new Error(`${serviceName} not configured`); const health = await client.getHealth(); return { content: [{ type: "text", text: JSON.stringify({ issueCount: health.length, issues: health.map(h => ({ source: h.source, type: h.type, message: h.message, wikiUrl: h.wikiUrl, })), status: health.length === 0 ? 'healthy' : 'issues detected', }, null, 2), }], }; }
- src/arr-client.ts:564-566 (helper)Core helper method in ArrClient (inherited by RadarrClient) that performs the actual API request to /health endpoint for health checks.async getHealth(): Promise<HealthCheck[]> { return this.request<HealthCheck[]>('/health'); }
- src/arr-client.ts:394-399 (schema)TypeScript interface defining the structure of health check responses used by getHealth().export interface HealthCheck { source: string; type: string; message: string; wikiUrl: string; }