sonarr_get_quality_profiles
Retrieve quality profiles from Sonarr to view allowed video qualities, upgrade settings, and custom format scores for TV show management.
Instructions
Get detailed quality profiles from Sonarr (TV). Shows allowed qualities, upgrade settings, and custom format scores.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:795-827 (handler)Handler for sonarr_get_quality_profiles tool: extracts service name, calls client.getQualityProfiles(), formats and returns profiles summary with allowed qualities and custom format scores.case "sonarr_get_quality_profiles": case "radarr_get_quality_profiles": case "lidarr_get_quality_profiles": case "readarr_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), }], }; }
- src/index.ts:109-116 (registration)Tool registration and schema definition for *_get_quality_profiles tools (including sonarr_get_quality_profiles). Called via addConfigTools('sonarr') at line 175.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: [], }, },
- src/arr-client.ts:529-531 (helper)Core helper method getQualityProfiles() in ArrClient (inherited by SonarrClient) that makes the API request to /qualityprofile.async getQualityProfiles(): Promise<QualityProfile[]> { return this.request<QualityProfile[]>('/qualityprofile'); }
- src/arr-client.ts:290-309 (schema)QualityProfile interface defining the structure of quality profile data returned by the API.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; }>; }
- src/index.ts:175-175 (registration)Specific registration call for Sonarr config tools, including sonarr_get_quality_profiles.if (clients.sonarr) addConfigTools('sonarr', 'Sonarr (TV)');