Skip to main content
Glama

lidarr_get_health

Check Lidarr health status to identify warnings and issues in your music management system. Detects problems reported by the application for troubleshooting.

Instructions

Get health check warnings and issues from Lidarr (Music). Shows any problems detected by the application.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the 'lidarr_get_health' tool. Parses the tool name to get the 'lidarr' client, calls getHealth() on it, and returns formatted health issues.
    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/index.ts:174-179 (registration)
    Conditional registration of configuration tools including 'lidarr_get_health' via addConfigTools call when Lidarr client is configured.
    // Add config tools for each configured service (except Prowlarr which has different config) if (clients.sonarr) addConfigTools('sonarr', 'Sonarr (TV)'); if (clients.radarr) addConfigTools('radarr', 'Radarr (Movies)'); if (clients.lidarr) addConfigTools('lidarr', 'Lidarr (Music)'); if (clients.readarr) addConfigTools('readarr', 'Readarr (Books)');
  • Tool schema definition for 'lidarr_get_health' (dynamic via serviceName='lidarr'). 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: [], }, },
  • Helper method in ArrClient (inherited by LidarrClient) that makes the API request to /health endpoint for health checks.
    /** * Get health check issues */ async getHealth(): Promise<HealthCheck[]> { return this.request<HealthCheck[]>('/health'); }
  • Initialization of LidarrClient instance used by the lidarr_get_health handler.
    case 'lidarr': clients.lidarr = new LidarrClient(config); break;

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/aplaceforallmystuff/mcp-arr'

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