Skip to main content
Glama

radarr_get_movies

Retrieve movies from Radarr library with pagination and title filtering to manage and browse your collection.

Instructions

Get movies from Radarr library with optional pagination and title filtering. Defaults to limit=25 to avoid very large responses. Use offset to fetch additional pages.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of movies to return (default: 25, max: 100)
offsetNoNumber of movies to skip before returning results (default: 0)
searchNoOptional case-insensitive title filter

Implementation Reference

  • src/index.ts:382-403 (registration)
    Tool schema registration for 'radarr_get_movies' in the TOOLS array. Defines input schema with optional limit, offset, and search parameters. Only added when Radarr is configured (clients.radarr truthy).
    {
      name: "radarr_get_movies",
      description: "Get movies from Radarr library with optional pagination and title filtering. Defaults to limit=25 to avoid very large responses. Use offset to fetch additional pages.",
      inputSchema: {
        type: "object" as const,
        properties: {
          limit: {
            type: "number",
            description: "Maximum number of movies to return (default: 25, max: 100)",
          },
          offset: {
            type: "number",
            description: "Number of movies to skip before returning results (default: 0)",
          },
          search: {
            type: "string",
            description: "Optional case-insensitive title filter",
          },
        },
        required: [],
      },
    },
  • Tool handler for 'radarr_get_movies' in the CallToolRequestSchema switch statement. Fetches all movies via clients.radarr.getMovies(), applies optional title filter, paginates with limit/offset, and returns JSON with movie metadata (id, title, year, status, hasFile, sizeOnDisk, monitored, studio).
    case "radarr_get_movies": {
      if (!clients.radarr) throw new Error("Radarr not configured");
      const { limit = 25, offset = 0, search } = args as {
        limit?: number;
        offset?: number;
        search?: string;
      };
      const normalizedLimit = Math.max(1, Math.min(limit, 100));
      const normalizedOffset = Math.max(0, offset);
      const filter = search?.trim().toLowerCase();
    
      const allMovies = await clients.radarr.getMovies();
      const filteredMovies = filter
        ? allMovies.filter(m => m.title.toLowerCase().includes(filter))
        : allMovies;
      const pagedMovies = filteredMovies.slice(normalizedOffset, normalizedOffset + normalizedLimit);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            total: allMovies.length,
            filteredCount: filteredMovies.length,
            returned: pagedMovies.length,
            offset: normalizedOffset,
            limit: normalizedLimit,
            hasMore: normalizedOffset + normalizedLimit < filteredMovies.length,
            nextOffset: normalizedOffset + normalizedLimit < filteredMovies.length
              ? normalizedOffset + normalizedLimit
              : null,
            search: search ?? null,
            movies: pagedMovies.map(m => ({
              id: m.id,
              title: m.title,
              year: m.year,
              status: m.status,
              hasFile: m.hasFile,
              sizeOnDisk: formatBytes(m.sizeOnDisk),
              monitored: m.monitored,
              studio: m.studio,
            })),
          }, null, 2),
        }],
      };
    }
  • RadarrClient.getMovies() helper method that calls the Radarr API's /movie endpoint to fetch all movies from the library.
    async getMovies(): Promise<Movie[]> {
      return this['request']<Movie[]>('/movie');
    }
Behavior3/5

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

No annotations provided; description mentions default limit to avoid large responses but lacks details on side effects, rate limits, or response 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?

Two clear sentences, front-loaded with purpose and efficient pagination guidance, with no wasted words.

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

Completeness3/5

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

No output schema; description does not describe the return value fields (e.g., movie objects, IDs, titles), leaving some ambiguity despite simple inputs.

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 coverage is 100% and description essentially restates schema defaults; no new semantic information beyond what the input schema already provides.

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 gets movies from Radarr library with optional pagination and title filtering, distinguishing it from sibling tools like radarr_search which search for specific movies.

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 pagination defaults (limit=25) and offset usage, but does not explicitly contrast with alternatives like radarr_search or radarr_add_movie.

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