radarr_get_profiles
Fetches Radarr quality profiles and root folders, required before adding movies to Radarr.
Instructions
Get Radarr quality profiles and root folders (needed before adding movies)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/arr/mcp-functions.ts:618-645 (handler)The main handler function 'radarrGetProfiles' that fetches Radarr quality profiles and root folders via the Radarr client API.
async radarrGetProfiles(): Promise<Record<string, unknown>> { const client = this.ensureRadarr(); try { const [profiles, rootFolders] = await Promise.all([ client.getQualityProfiles(), client.getRootFolders(), ]); return { success: true, qualityProfiles: profiles.map((p) => ({ id: p.id, name: p.name, upgradeAllowed: p.upgradeAllowed, })), rootFolders: rootFolders.map((r) => ({ id: r.id, path: r.path, accessible: r.accessible, freeSpace: r.freeSpace, })), }; } catch (error) { return { success: false, error: error instanceof Error ? error.message : String(error), }; } } - src/arr/tool-schemas.ts:186-190 (schema)Schema definition for 'radarr_get_profiles' tool with name, description, and empty input schema.
{ name: "radarr_get_profiles", description: "Get Radarr quality profiles and root folders (needed before adding movies)", inputSchema: { type: "object" as const, properties: {} }, }, - src/arr/tool-registry.ts:105-107 (registration)Registration of 'radarr_get_profiles' tool in the tool registry, delegating to arrFunctions.radarrGetProfiles().
registry.register("radarr_get_profiles", () => arrFunctions.radarrGetProfiles().then(wrapResponse) );