Skip to main content
Glama

lidarr_search

Search for music artists by name to obtain the foreignArtistId required for adding artists to Lidarr.

Instructions

Search for artists by name. Returns results with foreignArtistId needed for lidarr_add_artist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesSearch term (artist name)

Implementation Reference

  • Tool registration and input schema for lidarr_search. Defines the tool name, description, and input schema requiring a 'term' string for searching artists.
    {
      name: "lidarr_search",
      description: "Search for artists by name. Returns results with foreignArtistId needed for lidarr_add_artist.",
      inputSchema: {
        type: "object" as const,
        properties: {
          term: {
            type: "string",
            description: "Search term (artist name)",
          },
        },
        required: ["term"],
      },
    },
  • Handler for the lidarr_search tool. Takes a term/query/artist/name parameter, calls LidarrClient.searchArtists(), and returns up to 10 results with artistName, disambiguation, foreignArtistId, and truncated overview.
    case "lidarr_search": {
      if (!clients.lidarr) throw new Error("Lidarr not configured");
      const a = args as { term?: string; query?: string; artist?: string; name?: string };
      const term = a.term ?? a.query ?? a.artist ?? a.name;
      if (!term) throw new Error("term required (artist name)");
      const results = await clients.lidarr.searchArtists(term);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            count: results.length,
            results: results.slice(0, 10).map(r => ({
              artistName: r.artistName ?? r.title,
              disambiguation: r.disambiguation,
              foreignArtistId: r.foreignArtistId,
              overview: r.overview ? (r.overview.substring(0, 200) + (r.overview.length > 200 ? '...' : '')) : undefined,
            })),
          }, null, 2),
        }],
      };
    }
  • LidarrClient.searchArtists() helper method. Sends a GET request to /artist/lookup with the search term, via the base ArrClient.request() method.
    async searchArtists(term: string): Promise<SearchResult[]> {
      return this['request']<SearchResult[]>(`/artist/lookup?term=${encodeURIComponent(term)}`);
    }
Behavior3/5

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

With no annotations, the description carries the full burden. It states it is a search operation (likely read-only) but does not mention side effects, rate limits, authentication, or result structure. Adequate but missing details.

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?

Two concise sentences with no unnecessary words. Front-loaded with the core action and important context about the return value.

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's simplicity (one parameter, no output schema), the description is mostly complete. It explains the purpose and the key return value. Could mention authentication or pagination but not critical.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers the only parameter fully. The description adds 'by name' which aligns with the schema description but does not add new meaning beyond what the schema provides. Baseline 3.

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 tool searches for artists by name and specifies that it returns foreignArtistId needed for lidarr_add_artist, distinguishing it from album searches and other search tools.

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

Usage Guidelines4/5

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

The description implies this tool should be used before lidarr_add_artist because it returns the required foreignArtistId. It does not explicitly exclude other search tools but provides clear context for when it is appropriate.

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