Skip to main content
Glama

radarr_get_calendar

Get scheduled Radarr movie releases within a date range, with an optional limit on results.

Instructions

Get upcoming movies from the Radarr calendar

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
startDateNoStart date (YYYY-MM-DD, default: 7 days ago)
endDateNoEnd date (YYYY-MM-DD, default: 30 days from now)
limitNoMax results to return (default: 200)

Implementation Reference

  • Main handler function `radarrGetCalendar` that calls the Radarr client's `getCalendar` method, transforms entries (truncating overviews), and returns a success/error response with paginated results.
    async radarrGetCalendar(args: {
      startDate?: string;
      endDate?: string;
      limit?: number;
    }): Promise<Record<string, unknown>> {
      const client = this.ensureRadarr();
      const limit = args.limit || ARR_PREVIEW_LIMIT;
      try {
        const entries = await client.getCalendar(args.startDate, args.endDate);
        return {
          success: true,
          totalEntries: entries.length,
          entries: entries.slice(0, limit).map((m) => ({
            id: m.id,
            title: m.title,
            year: m.year,
            status: m.status,
            inCinemas: m.inCinemas,
            physicalRelease: m.physicalRelease,
            digitalRelease: m.digitalRelease,
            hasFile: m.hasFile,
            monitored: m.monitored,
            tmdbId: m.tmdbId,
            overview: m.overview ? truncate(m.overview, SUMMARY_PREVIEW_LENGTH) : undefined,
          })),
          showing: Math.min(limit, entries.length),
        };
      } catch (error) {
        return {
          success: false,
          error: error instanceof Error ? error.message : String(error),
        };
      }
    }
  • RadarrClient.getCalendar method — makes the actual HTTP GET request to /calendar with start/end date params (defaulting to ±30/7 days), returns calendar entries.
    async getCalendar(startDate?: string, endDate?: string): Promise<RadarrCalendarEntry[]> {
      const start = startDate || new Date(Date.now() - ARR_CALENDAR_DAYS_PAST * 86400000).toISOString().split("T")[0];
      const end = endDate || new Date(Date.now() + ARR_CALENDAR_DAYS_FUTURE * 86400000).toISOString().split("T")[0];
      const { data } = await this.http.get("/calendar", {
        params: { start, end, unmonitored: false },
      });
      return ensureArray(data);
    }
  • Input schema definition for radarr_get_calendar tool: startDate, endDate (strings, YYYY-MM-DD), and limit (number, default 200).
      name: "radarr_get_calendar",
      description: "Get upcoming movies from the Radarr calendar",
      inputSchema: {
        type: "object" as const,
        properties: {
          startDate: { type: "string", description: "Start date (YYYY-MM-DD, default: 7 days ago)" },
          endDate: { type: "string", description: "End date (YYYY-MM-DD, default: 30 days from now)" },
          limit: { type: "number", description: "Max results to return (default: 200)", default: 200 },
        },
      },
    },
  • Registration of the radarr_get_calendar tool in the registry, mapping it to ArrMCPFunctions.radarrGetCalendar with argument passing.
    registry.register("radarr_get_calendar", (args) =>
      arrFunctions.radarrGetCalendar({
        startDate: args.startDate as string | undefined,
        endDate: args.endDate as string | undefined,
        limit: args.limit as number | undefined,
      }).then(wrapResponse)
    );
Behavior2/5

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

With no annotations, the description must disclose behavioral traits. It does not mention that it is a read-only operation, any required permissions, or potential side effects. The minimal description lacks transparency about what the tool does beyond the obvious.

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?

The description is a single, concise sentence with no wasted words. It is appropriately sized for a simple tool, though a bit more context could be added without sacrificing brevity.

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?

Given the tool's low complexity (no output schema, three optional parameters), the description is minimally adequate. However, it lacks context about typical use cases, default date ranges, or how results are ordered, leaving some ambiguity.

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%, so baseline is 3. The description adds no additional meaning beyond the parameter descriptions in the schema. It does not clarify date formats or default behavior further.

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 ('Get') and the resource ('upcoming movies from the Radarr calendar'). It effectively distinguishes from sibling tools like radarr_get_movies or radarr_get_missing by focusing on calendar-based queries.

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 guidance is provided on when to use this tool versus alternatives such as radarr_get_movies or sonarr_get_calendar. There are no prerequisites, exclusions, or usage context given.

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