Skip to main content
Glama

lidarr_add_artist

Add an artist to Lidarr using its MusicBrainz ID, quality profile, metadata profile, and root folder. Requires IDs from Lidarr search and profile lookups.

Instructions

Add an artist to Lidarr. Use lidarr_search first to find the foreignArtistId, and lidarr_get_root_folders / lidarr_get_quality_profiles / lidarr_get_metadata_profiles to get valid values. Use lidarr_get_tags to get valid tag IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
foreignArtistIdYesForeign artist ID (MusicBrainz ID) from lidarr_search results
artistNameYesArtist name
qualityProfileIdYesQuality profile ID from lidarr_get_quality_profiles
metadataProfileIdYesMetadata profile ID from lidarr_get_metadata_profiles
rootFolderPathYesRoot folder path from lidarr_get_root_folders
monitoredNoWhether to monitor the artist (default: true)
tagsNoArray of tag IDs from lidarr_get_tags (optional)

Implementation Reference

  • src/index.ts:622-659 (registration)
    Registration of lidarr_add_artist tool definition with input schema. Defines required fields: foreignArtistId, artistName, qualityProfileId, metadataProfileId, rootFolderPath. Optional: monitored, tags.
      name: "lidarr_add_artist",
      description: "Add an artist to Lidarr. Use lidarr_search first to find the foreignArtistId, and lidarr_get_root_folders / lidarr_get_quality_profiles / lidarr_get_metadata_profiles to get valid values. Use lidarr_get_tags to get valid tag IDs.",
      inputSchema: {
        type: "object" as const,
        properties: {
          foreignArtistId: {
            type: "string",
            description: "Foreign artist ID (MusicBrainz ID) from lidarr_search results",
          },
          artistName: {
            type: "string",
            description: "Artist name",
          },
          qualityProfileId: {
            type: "number",
            description: "Quality profile ID from lidarr_get_quality_profiles",
          },
          metadataProfileId: {
            type: "number",
            description: "Metadata profile ID from lidarr_get_metadata_profiles",
          },
          rootFolderPath: {
            type: "string",
            description: "Root folder path from lidarr_get_root_folders",
          },
          monitored: {
            type: "boolean",
            description: "Whether to monitor the artist (default: true)",
          },
          tags: {
            type: "array",
            items: { type: "number" },
            description: "Array of tag IDs from lidarr_get_tags (optional)",
          },
        },
        required: ["foreignArtistId", "artistName", "qualityProfileId", "metadataProfileId", "rootFolderPath"],
      },
    },
  • Handler for lidarr_add_artist tool call. Extracts arguments from request, calls clients.lidarr.addArtist(), and returns success response with artist details.
    case "lidarr_add_artist": {
      if (!clients.lidarr) throw new Error("Lidarr not configured");
      const { foreignArtistId, artistName, qualityProfileId, metadataProfileId, rootFolderPath, monitored, tags } = args as {
        foreignArtistId: string; artistName: string; qualityProfileId: number;
        metadataProfileId: number; rootFolderPath: string; monitored?: boolean; tags?: number[];
      };
      const added = await clients.lidarr.addArtist({
        foreignArtistId, artistName, qualityProfileId, metadataProfileId, rootFolderPath, monitored, tags: tags ?? [],
      });
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            success: true,
            message: `Added "${added.artistName}" to Lidarr`,
            id: added.id,
            path: added.path,
            monitored: added.monitored,
          }, null, 2),
        }],
      };
    }
  • LidarrClient.addArtist() - the actual API call that sends a POST to /artist endpoint with the artist data and addOptions.searchForMissingAlbums=true.
    async addArtist(artist: Partial<Artist> & { foreignArtistId: string; rootFolderPath: string; qualityProfileId: number; metadataProfileId: number }): Promise<Artist> {
      return this['request']<Artist>('/artist', {
        method: 'POST',
        body: JSON.stringify({
          ...artist,
          monitored: artist.monitored ?? true,
          addOptions: {
            searchForMissingAlbums: true,
          },
        }),
      });
    }
  • Artist interface - the data type used by addArtist return value and internal representation.
    export interface Artist {
      id: number;
      artistName: string;
      sortName: string;
      status: string;
      overview: string;
      artistType: string;
      disambiguation: string;
      links: Array<{ url: string; name: string }>;
      images: Array<{ coverType: string; url: string }>;
      path: string;
      qualityProfileId: number;
      metadataProfileId: number;
      monitored: boolean;
      monitorNewItems: string;
      genres: string[];
      cleanName: string;
      foreignArtistId: string;
      tags: number[];
      added: string;
      ratings: { votes: number; value: number };
      statistics: {
        albumCount: number;
        trackFileCount: number;
        trackCount: number;
        totalTrackCount: number;
        sizeOnDisk: number;
        percentOfTracks: number;
      };
    }
Behavior2/5

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

No annotations are provided, so the description must disclose behavioral traits. The description only says 'Add an artist' without mentioning side effects (e.g., whether it triggers a library update, requires authentication, or has rate limits). Missing key behavioral information.

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 one sentence followed by a list of prerequisite tools. It is concise, front-loaded with the main purpose, and every sentence provides essential guidance without redundancy.

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?

Given the tool has 7 parameters, all fully described in schema, and no output schema, the description provides a solid workflow. However, it lacks information on the return value (e.g., the created artist object) or any post-action behavior. Still, it is complete enough for typical use.

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?

Input schema has 100% description coverage, and each parameter's description adds context beyond the name, such as how to obtain the value (e.g., 'from lidarr_search results'). This helps the agent correctly populate parameters.

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 action (add) and the resource (artist to Lidarr). It distinguishes from sibling tools like lidarr_search, which finds artists, and other get- tools that retrieve configuration.

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

Usage Guidelines5/5

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

Explicitly tells the agent to use lidarr_search first to obtain foreignArtistId, and lidarr_get_root_folders, lidarr_get_quality_profiles, lidarr_get_metadata_profiles for valid values. Also mentions lidarr_get_tags for optional tag IDs. This provides a clear workflow and prerequisites.

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