lidarr_get_metadata_profiles
Retrieve available metadata profiles from Lidarr to obtain valid metadataProfileId values for adding an artist.
Instructions
Get available metadata profiles for Lidarr. Use this to find valid metadataProfileId values when adding an artist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/arr-client.ts:351-361 (schema)MetadataProfile interface defining the shape of metadata profiles returned from the Lidarr API
export interface MetadataProfile { id: number; name: string; minPopularity?: number; skipMissingDate: boolean; skipMissingIsbn: boolean; skipPartsAndSets: boolean; skipSeriesSecondary: boolean; allowedLanguages?: string; minPages?: number; } - src/arr-client.ts:793-798 (helper)LidarrClient.getMetadataProfiles() method that calls the Lidarr API '/metadataprofile' endpoint to fetch metadata profiles
/** * Get metadata profiles */ async getMetadataProfiles(): Promise<MetadataProfile[]> { return this['request']<MetadataProfile[]>('/metadataprofile'); } - src/index.ts:678-686 (registration)Tool registration for 'lidarr_get_metadata_profiles' in the Lidarr tool definitions array
{ name: "lidarr_get_metadata_profiles", description: "Get available metadata profiles for Lidarr. Use this to find valid metadataProfileId values when adding an artist.", inputSchema: { type: "object" as const, properties: {}, required: [], }, } - src/index.ts:1941-1950 (handler)Handler for the 'lidarr_get_metadata_profiles' tool call, invoking LidarrClient.getMetadataProfiles() and returning the profiles with id and name
case "lidarr_get_metadata_profiles": { if (!clients.lidarr) throw new Error("Lidarr not configured"); const profiles = await clients.lidarr.getMetadataProfiles(); return { content: [{ type: "text", text: JSON.stringify(profiles.map(p => ({ id: p.id, name: p.name })), null, 2), }], }; }