Skip to main content
Glama

sonarr_get_naming

Retrieve Sonarr's file and folder naming patterns for TV shows to verify naming configuration.

Instructions

Get file naming configuration from Sonarr (TV). Shows naming patterns for files and folders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:170-178 (registration)
    The tool 'sonarr_get_naming' is registered via a dynamic template using addConfigTools('sonarr', ...). The name is constructed as `${serviceName}_get_naming` which produces 'sonarr_get_naming'. The input schema requires no parameters.
    {
      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: [],
      },
    },
  • The handler for sonarr_get_naming (and radarr_get_naming, lidarr_get_naming) in the CallToolRequestSchema switch statement. It extracts the service name from the tool name, gets the client, calls client.getNamingConfig(), and returns the naming configuration as JSON.
    case "sonarr_get_naming":
    case "radarr_get_naming":
    case "lidarr_get_naming": {
      const serviceName = name.split('_')[0] as keyof typeof clients;
      const client = clients[serviceName];
      if (!client) throw new Error(`${serviceName} not configured`);
      const naming = await client.getNamingConfig();
      return {
        content: [{
          type: "text",
          text: JSON.stringify(naming, null, 2),
        }],
      };
    }
  • The NamingConfig interface defines the response schema for the naming configuration, including fields like renameEpisodes, standardEpisodeFormat, seriesFolderFormat, etc. for Sonarr.
    export interface NamingConfig {
      renameEpisodes?: boolean;
      replaceIllegalCharacters: boolean;
      colonReplacementFormat?: string;
      standardEpisodeFormat?: string;
      dailyEpisodeFormat?: string;
      animeEpisodeFormat?: string;
      seriesFolderFormat?: string;
      seasonFolderFormat?: string;
      specialsFolderFormat?: string;
      multiEpisodeStyle?: number;
      // Radarr
      renameMovies?: boolean;
      movieFolderFormat?: string;
      standardMovieFormat?: string;
      // Lidarr
      renameTracks?: boolean;
      artistFolderFormat?: string;
      albumFolderFormat?: string;
      trackFormat?: string;
    }
  • The getNamingConfig() method in the base ArrClient class makes an API call to '/config/naming' and returns a NamingConfig object. This is the helper that actually fetches the naming config from the Sonarr API.
     */
    async getNamingConfig(): Promise<NamingConfig> {
      return this.request<NamingConfig>('/config/naming');
    }
  • src/index.ts:132-198 (registration)
    The addConfigTools function that dynamically registers config tools including sonarr_get_naming for each configured service (sonarr, radarr, lidarr). Line 201 calls addConfigTools('sonarr', ...) to register the Sonarr-specific tools.
    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: [],
          },
        }
      );
    }
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It states the tool 'shows naming patterns' but does not disclose any behavioral traits such as performance, authentication requirements, or that it is read-only. The absence of explicit behavioral details limits transparency.

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 two short sentences that are front-loaded with core functionality. Every word earns its place; no redundant or extraneous content.

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?

For a simple getter with no parameters and no output schema, the description adequately explains the tool's purpose. However, it lacks details about the specific naming patterns returned (e.g., file, folder, season), which could aid agents in understanding the output format.

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?

The input schema has no parameters, and schema description coverage is 100%. The description adds no parameter information because there are none to describe. For a zero-parameter tool, the baseline is 4.

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 the tool retrieves file naming configuration from Sonarr for TV, specifying that it shows naming patterns for files and folders. This is a specific verb-resource pair and distinguishes it from siblings like radarr_get_naming (movies) or lidarr_get_naming (music).

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

Usage Guidelines3/5

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

The description implies usage when Sonarr naming config is needed but does not provide explicit context on when to use or avoid alternatives. While siblings are for different arr apps, no direct guidance on exclusions or prerequisites is given.

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