radarr_get_tags
Retrieve all organizational tags from Radarr to filter and categorize your movie collection. This tool helps manage content by accessing defined tags for better media organization.
Instructions
Get all tags defined in Radarr (Movies). Tags can be used to organize and filter content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:930-947 (handler)Handler for the 'radarr_get_tags' tool call. Parses the service name from the tool name, retrieves the corresponding client (RadarrClient), calls getTags(), formats the response as JSON with count and list of tags (id, label), and returns it as text content.
case "sonarr_get_tags": case "radarr_get_tags": case "lidarr_get_tags": case "readarr_get_tags": { const serviceName = name.split('_')[0] as keyof typeof clients; const client = clients[serviceName]; if (!client) throw new Error(`${serviceName} not configured`); const tags = await client.getTags(); return { content: [{ type: "text", text: JSON.stringify({ count: tags.length, tags: tags.map(t => ({ id: t.id, label: t.label })), }, null, 2), }], }; } - src/index.ts:154-162 (registration)Registration of the 'radarr_get_tags' tool (via template `${serviceName}_get_tags` where serviceName='radarr'). Adds the tool to the TOOLS array inside addConfigTools, called when Radarr is configured.
name: `${serviceName}_get_tags`, description: `Get all tags defined in ${displayName}. Tags can be used to organize and filter content.`, inputSchema: { type: "object" as const, properties: {}, required: [], }, }, { - src/index.ts:157-160 (schema)Input schema for 'radarr_get_tags': empty object (no parameters required).
type: "object" as const, properties: {}, required: [], }, - src/arr-client.ts:571-573 (helper)Core implementation of getTags() method in base ArrClient class (inherited by RadarrClient). Makes API request to '/api/v3/tag' endpoint to fetch all tags.
async getTags(): Promise<Tag[]> { return this.request<Tag[]>('/tag'); } - src/index.ts:74-75 (helper)Instantiation of RadarrClient from arr-client.ts, required for handling radarr_get_tags.
clients.radarr = new RadarrClient(config); break;