Skip to main content
Glama

sonarr_review_setup

Analyze your Sonarr configuration by reviewing all settings, including quality profiles, download clients, naming, storage, indexers, and health warnings, to identify improvements.

Instructions

Get comprehensive configuration review for Sonarr (TV). Returns all settings for analysis: quality profiles, download clients, naming, storage, indexers, health warnings, and more. Use this to analyze the setup and suggest improvements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:189-196 (registration)
    Tool registration for sonarr_review_setup. Defined as part of the addConfigTools() helper which dynamically creates config review tools for each configured service.
      name: `${serviceName}_review_setup`,
      description: `Get comprehensive configuration review for ${displayName}. Returns all settings for analysis: quality profiles, download clients, naming, storage, indexers, health warnings, and more. Use this to analyze the setup and suggest improvements.`,
      inputSchema: {
        type: "object" as const,
        properties: {},
        required: [],
      },
    }
  • Input schema for sonarr_review_setup. Has an empty schema (no parameters required) since it returns a comprehensive review of all settings.
      name: `${serviceName}_review_setup`,
      description: `Get comprehensive configuration review for ${displayName}. Returns all settings for analysis: quality profiles, download clients, naming, storage, indexers, health warnings, and more. Use this to analyze the setup and suggest improvements.`,
      inputSchema: {
        type: "object" as const,
        properties: {},
        required: [],
      },
    }
  • Handler for sonarr_review_setup (and radarr_review_setup, lidarr_review_setup). Gathers all configuration data: status, health, quality profiles, quality definitions, download clients, naming, media management, root folders, tags, and indexers, then returns a comprehensive JSON review.
    case "sonarr_review_setup":
    case "radarr_review_setup":
    case "lidarr_review_setup": {
      const serviceName = name.split('_')[0] as keyof typeof clients;
      const client = clients[serviceName];
      if (!client) throw new Error(`${serviceName} not configured`);
    
      // Gather all configuration data
      const [status, health, qualityProfiles, qualityDefinitions, downloadClients, naming, mediaManagement, rootFolders, tags, indexers] = await Promise.all([
        client.getStatus(),
        client.getHealth(),
        client.getQualityProfiles(),
        client.getQualityDefinitions(),
        client.getDownloadClients(),
        client.getNamingConfig(),
        client.getMediaManagement(),
        client.getRootFoldersDetailed(),
        client.getTags(),
        client.getIndexers(),
      ]);
    
      // For Lidarr, also get metadata profiles
      let metadataProfiles = null;
      if (serviceName === 'lidarr' && clients.lidarr) {
        metadataProfiles = await clients.lidarr.getMetadataProfiles();
      }
    
      const review = {
        service: serviceName,
        version: status.version,
        appName: status.appName,
        platform: {
          os: status.osName,
          isDocker: status.isDocker,
        },
        health: {
          issueCount: health.length,
          issues: health,
        },
        storage: {
          rootFolders: rootFolders.map(f => ({
            path: f.path,
            accessible: f.accessible,
            freeSpace: formatBytes(f.freeSpace),
            freeSpaceBytes: f.freeSpace,
            unmappedFolderCount: f.unmappedFolders?.length || 0,
          })),
        },
        qualityProfiles: qualityProfiles.map(p => ({
          id: p.id,
          name: p.name,
          upgradeAllowed: p.upgradeAllowed,
          cutoff: p.cutoff,
          allowedQualities: p.items
            .filter(i => i.allowed)
            .map(i => i.quality?.name || i.name || (i.items?.map(q => q.quality.name).join(', ')))
            .filter(Boolean),
          customFormatsWithScores: p.formatItems?.filter(f => f.score !== 0).length || 0,
          minFormatScore: p.minFormatScore,
        })),
        qualityDefinitions: qualityDefinitions.map(d => ({
          quality: d.quality.name,
          minSize: d.minSize + ' MB/min',
          maxSize: d.maxSize === 0 ? 'unlimited' : d.maxSize + ' MB/min',
          preferredSize: d.preferredSize + ' MB/min',
        })),
        downloadClients: downloadClients.map(c => ({
          name: c.name,
          type: c.implementationName,
          protocol: c.protocol,
          enabled: c.enable,
          priority: c.priority,
        })),
        indexers: indexers.map(i => ({
          name: i.name,
          protocol: i.protocol,
          enableRss: i.enableRss,
          enableAutomaticSearch: i.enableAutomaticSearch,
          enableInteractiveSearch: i.enableInteractiveSearch,
          priority: i.priority,
        })),
        naming: naming,
        mediaManagement: {
          recycleBin: mediaManagement.recycleBin || 'not set',
          recycleBinCleanupDays: mediaManagement.recycleBinCleanupDays,
          downloadPropersAndRepacks: mediaManagement.downloadPropersAndRepacks,
          deleteEmptyFolders: mediaManagement.deleteEmptyFolders,
          copyUsingHardlinks: mediaManagement.copyUsingHardlinks,
          importExtraFiles: mediaManagement.importExtraFiles,
          extraFileExtensions: mediaManagement.extraFileExtensions,
        },
        tags: tags.map(t => t.label),
        ...(metadataProfiles && { metadataProfiles }),
      };
    
      return {
        content: [{
          type: "text",
          text: JSON.stringify(review, null, 2),
        }],
      };
    }
  • The addConfigTools() helper function that dynamically creates the sonarr_review_setup tool registration along with other config tools for each service.
    function addConfigTools(serviceName: string, displayName: string) {
      TOOLS.push(
        {
          name: `${serviceName}_get_quality_profiles`,
          description: `Get detailed quality profiles from ${displayName}. Shows allowed qualities, upgrade settings, and custom format scores.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            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: [],
          },
        },
        {
          name: `${serviceName}_get_root_folders`,
          description: `Get root folders and storage info from ${displayName}. Shows paths, free space, and unmapped folders.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            required: [],
          },
        },
        {
          name: `${serviceName}_get_download_clients`,
          description: `Get download client configurations from ${displayName}. Shows configured clients and their settings.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            required: [],
          },
        },
        {
          name: `${serviceName}_get_naming`,
          description: `Get file naming configuration from ${displayName}. Shows naming patterns for files and folders.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            required: [],
          },
        },
        {
          name: `${serviceName}_get_tags`,
          description: `Get all tags defined in ${displayName}. Tags can be used to organize and filter content.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            required: [],
          },
        },
        {
          name: `${serviceName}_review_setup`,
          description: `Get comprehensive configuration review for ${displayName}. Returns all settings for analysis: quality profiles, download clients, naming, storage, indexers, health warnings, and more. Use this to analyze the setup and suggest improvements.`,
          inputSchema: {
            type: "object" as const,
            properties: {},
            required: [],
          },
        }
      );
    }
Behavior4/5

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

No annotations provided, so description carries full burden. It implies a read-only review by stating 'returns all settings for analysis,' but does not explicitly confirm no side effects. Lists what it returns, adding transparency without contradicting annotations.

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?

Two concise sentences. First sentence states action and outputs; second sentence provides usage guidance. No redundant or extraneous information.

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

Completeness4/5

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

Given no parameters or output schema, description adequately covers inputs (none) and outputs (list of categories). Could explicitly state read-only nature, but overall sufficient for comprehensive review tool.

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

Parameters4/5

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

No parameters in schema; baseline is 4. Description adds value by listing the categories of data returned, which helps the agent understand what the tool provides beyond schema.

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?

Description clearly states it gets a comprehensive configuration review for Sonarr, differentiating from sibling tools like sonarr_get_quality_profiles or sonarr_get_health by returning all settings. Includes specific categories (quality profiles, download clients, etc.) for clarity.

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

Usage Guidelines4/5

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

Explicitly states 'Use this to analyze the setup and suggest improvements,' providing clear context. Does not mention when not to use or alternatives, but context signals show many sibling tools for specific settings, implying this is for overview.

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