Skip to main content
Glama

radarr_get_quality_profiles

Retrieve detailed quality profiles from Radarr to view allowed qualities, upgrade settings, and custom format scores for movies.

Instructions

Get detailed quality profiles from Radarr (Movies). Shows allowed qualities, upgrade settings, and custom format scores.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:132-142 (registration)
    The tool 'radarr_get_quality_profiles' is dynamically registered in the `addConfigTools` helper function. When `clients.radarr` is configured, `addConfigTools('radarr', 'Radarr (Movies)')` is called (line 202), which pushes a tool definition with name `radarr_get_quality_profiles` to the TOOLS array.
    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: [],
          },
        },
  • The input schema for radarr_get_quality_profiles is defined as an empty object with no required properties, meaning the tool takes no arguments.
      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: [],
      },
    },
  • The handler for 'radarr_get_quality_profiles' is a shared case (line 1187) alongside sonarr and lidarr variants. It extracts the service name ('radarr') from the tool name, calls `client.getQualityProfiles()` on the RadarrClient, and returns formatted JSON with profile details including allowed qualities, cutoff, upgrade settings, and custom format scores.
    case "sonarr_get_quality_profiles":
    case "radarr_get_quality_profiles":
    case "lidarr_get_quality_profiles": {
      const serviceName = name.split('_')[0] as keyof typeof clients;
      const client = clients[serviceName];
      if (!client) throw new Error(`${serviceName} not configured`);
      const profiles = await client.getQualityProfiles();
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            count: profiles.length,
            profiles: profiles.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),
              customFormats: p.formatItems?.filter(f => f.score !== 0).map(f => ({
                name: f.name,
                score: f.score,
              })) || [],
              minFormatScore: p.minFormatScore,
              cutoffFormatScore: p.cutoffFormatScore,
            })),
          }, null, 2),
        }],
      };
    }
  • The `getQualityProfiles()` method on `ArrClient` (inherited by `RadarrClient`) makes a GET request to `/api/v3/qualityprofile` to fetch the quality profiles from the Radarr API.
     */
    async getQualityProfiles(): Promise<QualityProfile[]> {
      return this.request<QualityProfile[]>('/qualityprofile');
    }
  • The `QualityProfile` interface defines the shape of the data returned by the API, including id, name, upgradeAllowed, cutoff, items (with allowed qualities), formatItems (custom format scores), minFormatScore, and cutoffFormatScore.
    export interface QualityProfile {
      id: number;
      name: string;
      upgradeAllowed: boolean;
      cutoff: number;
      items: Array<{
        id?: number;
        name?: string;
        quality?: { id: number; name: string; source: string; resolution: number };
        items?: Array<{ quality: { id: number; name: string } }>;
        allowed: boolean;
      }>;
      minFormatScore: number;
      cutoffFormatScore: number;
      formatItems: Array<{
        format: number;
        name: string;
        score: number;
      }>;
    }
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It describes the output content (allowed qualities, upgrade settings, custom format scores) but does not explicitly state that this is a read-only operation or mention side effects, rate limits, or authorization needs. The name implies reading, but the description does not fully compensate for the lack of 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?

The description is very concise with only two sentences, each providing essential information. It avoids fluff and is front-loaded with the main action. Every sentence adds value, making it efficient for an agent to parse.

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

Completeness5/5

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

Given that there are no parameters and no output schema, the description sufficiently explains what the tool returns: quality profiles with allowed qualities, upgrade settings, and custom format scores. This is complete for a simple list tool, and no additional information is necessary.

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?

There are no parameters in the input schema, so the baseline score is 4. The description does not need to add parameter details, and it does not repeat schema information unreasonably. This is appropriate for a no-parameter tool.

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 'Get detailed quality profiles from Radarr (Movies)', specifying the verb and resource. The parenthetical 'Movies' distinguishes it from sibling tools like lidarr_get_quality_profiles (music) and sonarr_get_quality_profiles (TV). This is specific and unambiguous.

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?

The description does not provide any guidance on when to use this tool versus alternatives. It simply states what it does but offers no context for decision-making, such as when it is appropriate or when to use other tools like radarr_get_movies. This is a lack of usage guidance.

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