Skip to main content
Glama

radarr_search

Search TMDB for movies to add to Radarr. Find movies by title to manage your media library.

Instructions

Search TMDB for new movies to add to Radarr

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query (movie title)
limitNoMax results to return (default: 200)

Implementation Reference

  • The radarrSearch handler function that executes the tool logic: calls client.searchMovies, maps results, handles errors.
    async radarrSearch(args: {
      query: string;
      limit?: number;
    }): Promise<Record<string, unknown>> {
      const client = this.ensureRadarr();
      const limit = args.limit || ARR_PREVIEW_LIMIT;
      try {
        const results = await client.searchMovies(args.query);
        return {
          success: true,
          query: args.query,
          totalResults: results.length,
          results: results.slice(0, limit).map((r) => ({
            tmdbId: r.tmdbId,
            imdbId: r.imdbId,
            title: r.title,
            year: r.year,
            status: r.status,
            runtime: r.runtime,
            genres: r.genres,
            certification: r.certification,
            overview: r.overview ? truncate(r.overview, SUMMARY_PREVIEW_LENGTH) : undefined,
          })),
          showing: Math.min(limit, results.length),
        };
      } catch (error) {
        return {
          success: false,
          error: error instanceof Error ? error.message : String(error),
        };
      }
  • Schema definition for radarr_search tool: name, description, inputSchema with 'query' (required string) and 'limit' (optional number).
    {
      name: "radarr_search",
      description: "Search TMDB for new movies to add to Radarr",
      inputSchema: {
        type: "object" as const,
        properties: {
          query: { type: "string", description: "Search query (movie title)" },
          limit: { type: "number", description: "Max results to return (default: 200)", default: 200 },
        },
        required: ["query"],
      },
    },
  • Registration of radarr_search tool in the registry, delegating to arrFunctions.radarrSearch.
    registry.register("radarr_search", (args) =>
      arrFunctions.radarrSearch({ query: args.query as string, limit: args.limit as number | undefined }).then(wrapResponse)
    );
  • Client helper that calls the Radarr API endpoint /movie/lookup with a search term query parameter.
    async searchMovies(query: string): Promise<RadarrSearchResult[]> {
      const { data } = await this.http.get("/movie/lookup", {
        params: { term: query },
      });
      return ensureArray(data);
    }
  • Type definition for RadarrSearchResult returned from the search.
    export interface RadarrSearchResult {
      tmdbId: number;
      imdbId: string;
      title: string;
      overview: string;
      status: string;
      images: Array<{ coverType: string; remoteUrl: string }>;
      year: number;
      runtime: number;
      genres: string[];
      ratings: { imdb?: { votes: number; value: number }; tmdb?: { votes: number; value: number } };
      certification: string;
Behavior2/5

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

No annotations provided; description fails to disclose rate limits, authentication, or whether results exclude already added movies. The phrase 'new movies' is ambiguous. Minimal behavioral context beyond the search action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no filler. Clearly communicates the core action. Could be slightly improved with a hint about typical workflow, but remains concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema and simple parameters, the description should at least hint at the return type (e.g., list of TMDB movies) and how results feed into radarr_add_movie. Currently too sparse for a complete understanding.

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 covers 100% of parameters with descriptions. The tool description adds no extra parameter insight beyond the schema's 'query' and 'limit' explanations.

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 TMDB for new movies specifically to add to Radarr. It distinguishes from siblings like radarr_get_movies (list existing) and sonarr_search (TV shows).

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like radarr_add_movie or radarr_trigger_search. The description implies a prerequisite step before adding a movie but does not state this clearly.

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/niavasha/plex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server