Skip to main content
Glama

radarr_get_calendar

Retrieve upcoming movie releases from Radarr to plan and manage your media library schedule.

Instructions

Get upcoming movie releases from Radarr

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoNumber of days to look ahead (default: 30)

Implementation Reference

  • Handler for radarr_get_calendar tool: checks if Radarr client is configured, computes start/end dates from optional 'days' parameter (default 30), calls clients.radarr.getCalendar, and returns JSON stringified calendar data.
    case "radarr_get_calendar": { if (!clients.radarr) throw new Error("Radarr not configured"); const days = (args as { days?: number })?.days || 30; const start = new Date().toISOString().split('T')[0]; const end = new Date(Date.now() + days * 24 * 60 * 60 * 1000).toISOString().split('T')[0]; const calendar = await clients.radarr.getCalendar(start, end); return { content: [{ type: "text", text: JSON.stringify(calendar, null, 2) }], }; }
  • src/index.ts:314-327 (registration)
    Tool registration for 'radarr_get_calendar' including name, description, and input schema (optional 'days' number parameter).
    { name: "radarr_get_calendar", description: "Get upcoming movie releases from Radarr", inputSchema: { type: "object" as const, properties: { days: { type: "number", description: "Number of days to look ahead (default: 30)", }, }, required: [], }, },
  • Input schema definition for radarr_get_calendar tool: object with optional 'days' property of type number.
    { name: "radarr_get_calendar", description: "Get upcoming movie releases from Radarr", inputSchema: { type: "object" as const, properties: { days: { type: "number", description: "Number of days to look ahead (default: 30)", }, }, required: [], }, },
  • ArrClient.getCalendar method: constructs /calendar API endpoint with optional start/end date query params and makes authenticated API request to the *arr service.
    const params = new URLSearchParams(); if (start) params.append('start', start); if (end) params.append('end', end); const query = params.toString() ? `?${params.toString()}` : ''; return this.request<unknown[]>(`/calendar${query}`); }
  • RadarrClient class definition extending ArrClient with service name 'radarr'.
    export class RadarrClient extends ArrClient { constructor(config: ArrConfig) { super('radarr', config); }

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