Skip to main content
Glama

sonarr_get_health

Get health check warnings and issues from Sonarr to identify problems detected in TV show monitoring and management.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:144-151 (registration)
    Tool registration for `sonarr_get_health` - created dynamically via `addConfigTools('sonarr', 'Sonarr (TV)')` which generates the tool definition with name, description, and inputSchema (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: [],
      },
    },
  • Handler implementation for `sonarr_get_health` (alongside radarr_get_health and lidarr_get_health). Extracts the service name from the tool name, gets the corresponding client, calls `client.getHealth()`, and returns health check issues with source, type, message, wikiUrl, and overall status.
    case "sonarr_get_health":
    case "radarr_get_health":
    case "lidarr_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),
        }],
      };
    }
  • Helper method `getHealth()` on the base `ArrClient` class that makes the actual API call to `GET /api/v3/health` (or v1 for Lidarr/Prowlarr) and returns an array of `HealthCheck` objects.
    /**
     * Get health check issues
     */
    async getHealth(): Promise<HealthCheck[]> {
      return this.request<HealthCheck[]>('/health');
    }
  • Type definition for `HealthCheck` interface - defines the shape of health check objects returned from the API (source, type, message, wikiUrl).
    export interface HealthCheck {
      source: string;
      type: string;
      message: string;
      wikiUrl: string;
    }
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description indicates it is a read-only operation that returns detected problems. However, with no annotations, it does not disclose potential edge cases (e.g., empty response) or whether it requires specific permissions. It adds basic context but lacks depth.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at two sentences, front-loaded with the action and resource. Every word is meaningful and there is no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema and no annotations, the description provides the minimum necessary to understand the tool's purpose. It could be improved by describing the return format (e.g., list of issue objects) or noting that it may return an empty array. However, for a simple health check, it is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters, and schema coverage is 100%. The description does not need to explain parameters but adds no additional value beyond the schema. According to the rubric, a baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves health check warnings and issues from Sonarr for TV. It uses a specific verb (Get) and resource (health check warnings and issues), and distinguishes itself from other get_health tools for different services like Lidarr or Radarr.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives, such as when to check Sonarr health versus checking application status with arr_status. It merely states what it does without context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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