Skip to main content
Glama

radarr_get_queue

Retrieve the current download queue from Radarr to monitor pending movies and track download progress within your media management system.

Instructions

Get Radarr download queue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:305-313 (registration)
    Registration of the 'radarr_get_queue' tool in the TOOLS array if Radarr client is configured. Defines the tool name, description, and empty input schema.
    { name: "radarr_get_queue", description: "Get Radarr download queue", inputSchema: { type: "object" as const, properties: {}, required: [], }, },
  • Tool handler in the switch statement for CallToolRequestSchema. Validates Radarr configuration, fetches queue via RadarrClient.getQueue(), computes progress percentages, and returns formatted JSON response.
    case "radarr_get_queue": { if (!clients.radarr) throw new Error("Radarr not configured"); const queue = await clients.radarr.getQueue(); return { content: [{ type: "text", text: JSON.stringify({ totalRecords: queue.totalRecords, items: queue.records.map(q => ({ title: q.title, status: q.status, progress: ((1 - q.sizeleft / q.size) * 100).toFixed(1) + '%', timeLeft: q.timeleft, downloadClient: q.downloadClient, })), }, null, 2), }], }; }
  • Core getQueue method in ArrClient base class (inherited by RadarrClient). Performs authenticated API GET request to the /queue endpoint with flags to include unknown series/movie items.
    async getQueue(): Promise<{ records: QueueItem[]; totalRecords: number }> { return this.request<{ records: QueueItem[]; totalRecords: number }>('/queue?includeUnknownSeriesItems=true&includeUnknownMovieItems=true'); }
  • RadarrClient class extending ArrClient, initializing with service name 'radarr'. Provides the specific client instance used by the tool handler.
    export class RadarrClient extends ArrClient { constructor(config: ArrConfig) { super('radarr', config); }
  • TypeScript interface defining the structure of queue items returned by the Radarr /queue API endpoint.
    export interface QueueItem { id: number; title: string; status: string; trackedDownloadStatus: string; trackedDownloadState: string; statusMessages: Array<{ title: string; messages: string[] }>; downloadId: string; protocol: string; downloadClient: string; outputPath: string; sizeleft: number; size: number; timeleft: string; estimatedCompletionTime: string; }

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