Skip to main content
Glama

radarr_search

Search for movies by name to find tmdbId, which is required to add movies via radarr_add_movie.

Instructions

Search for movies by name. Returns results with tmdbId needed for radarr_add_movie.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesSearch term (movie name)

Implementation Reference

  • src/index.ts:404-417 (registration)
    Tool registration for 'radarr_search' as an MCP tool with input schema requiring a 'term' (string) parameter.
    {
      name: "radarr_search",
      description: "Search for movies by name. Returns results with tmdbId needed for radarr_add_movie.",
      inputSchema: {
        type: "object" as const,
        properties: {
          term: {
            type: "string",
            description: "Search term (movie name)",
          },
        },
        required: ["term"],
      },
    },
  • Handler for the 'radarr_search' tool call. Calls clients.radarr.searchMovies(term) and returns JSON with title, year, tmdbId, imdbId, and overview.
    case "radarr_search": {
      if (!clients.radarr) throw new Error("Radarr not configured");
      const term = (args as { term: string }).term;
      const results = await clients.radarr.searchMovies(term);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            count: results.length,
            results: results.slice(0, 10).map(r => ({
              title: r.title,
              year: r.year,
              tmdbId: r.tmdbId,
              imdbId: r.imdbId,
              overview: r.overview?.substring(0, 200) + (r.overview && r.overview.length > 200 ? '...' : ''),
            })),
          }, null, 2),
        }],
      };
    }
  • RadarrClient.searchMovies(term) method - executes the API call to /movie/lookup?term=... on the Radarr instance.
    async searchMovies(term: string): Promise<SearchResult[]> {
      return this['request']<SearchResult[]>(`/movie/lookup?term=${encodeURIComponent(term)}`);
    }
  • SearchResult type definition used as return type for searchMovies (contains title, year, tmdbId, imdbId, overview, etc.).
    export interface SearchResult {
      title: string;
      sortTitle: string;
      status: string;
      overview: string;
      year: number;
      images: Array<{ coverType: string; url: string }>;
      remotePoster?: string;
      // Sonarr specific
      tvdbId?: number;
      // Radarr specific
      tmdbId?: number;
      imdbId?: string;
      // Lidarr specific
      foreignArtistId?: string;
      artistName?: string;
      disambiguation?: string;
    }
Behavior3/5

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

No annotations exist, so description must cover behavior. It mentions returns tmdbId but not other fields or pagination. Basic transparency is adequate for a simple search, but could detail output structure.

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 a single sentence that efficiently conveys purpose and usage context, with no wasted words.

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?

For a simple 1-parameter tool with no output schema, the description sufficiently explains purpose and connection to another tool. Minor gap: no mention of error handling or other return fields.

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?

Schema description coverage is 100% for the single 'term' parameter. The description adds no extra meaning beyond the schema's 'Search term (movie name)'.

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 movies by name and returns tmdbId, which is specific and distinguishes it from other search tools like radarr_search_movie.

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 explains when to use (find movies by name) and connects to radarr_add_movie, providing context. It lacks explicit 'when not to use' but is clear for a simple case.

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