Skip to main content
Glama

lidarr_get_health

Check Lidarr music management application for health warnings and issues. Identifies problems detected by the system to maintain service reliability.

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 (shared with other *_get_health tools). Parses tool name to get service, retrieves the client, calls client.getHealth(), and formats the response with issue count, details, and status.
    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), }], }; }
  • Tool schema definition for lidarr_get_health (dynamically generated via addConfigTools for 'lidarr'). Defines name, description, and empty input schema (no parameters required).
    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:177-177 (registration)
    Conditional registration of lidarr tools (including lidarr_get_health) by calling addConfigTools when Lidarr client is configured.
    if (clients.lidarr) addConfigTools('lidarr', 'Lidarr (Music)');
  • Core helper method in ArrClient (inherited by LidarrClient) that implements the actual API call to fetch health checks from the Lidarr /health endpoint.
    async getHealth(): Promise<HealthCheck[]> { return this.request<HealthCheck[]>('/health'); }
  • Initialization of LidarrClient instance from configuration, enabling the lidarr_get_health tool.
    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