Skip to main content
Glama

readarr_get_health

Retrieve health check warnings and issues from Readarr to identify problems detected in your book management system.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Main handler for the 'readarr_get_health' tool. Parses the tool name to get the service, retrieves the ReadarrClient instance, calls getHealth(), formats the health issues into JSON, and returns as text content.
    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 readarr_get_health (and other *_get_health tools). 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:175-179 (registration)
    Registration of configuration tools including readarr_get_health. Conditionally adds the tool to the TOOLS array if Readarr client is configured.
    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)');
  • Core getHealth() method in ArrClient (inherited by ReadarrClient). Makes API request to /health endpoint to fetch health checks.
    * Get health check issues */ async getHealth(): Promise<HealthCheck[]> { return this.request<HealthCheck[]>('/health'); }
  • Type definition for HealthCheck interface used by getHealth() method.
    export interface HealthCheck { source: string; type: string; message: string; wikiUrl: string; }

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