Skip to main content
Glama

lidarr_get_calendar

Retrieve upcoming album releases from Lidarr for a specified number of days ahead. Plan your music library updates.

Instructions

Get upcoming album releases from Lidarr

Input Schema

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

Implementation Reference

  • src/index.ts:607-620 (registration)
    Registration of the lidarr_get_calendar tool with its name, description, and input schema. Registered as part of the Lidarr tools section (lines 522-688).
    {
      name: "lidarr_get_calendar",
      description: "Get upcoming album releases from Lidarr",
      inputSchema: {
        type: "object" as const,
        properties: {
          days: {
            type: "number",
            description: "Number of days to look ahead (default: 30)",
          },
        },
        required: [],
      },
    },
  • Input schema for lidarr_get_calendar: accepts an optional 'days' number (default 30).
    {
      name: "lidarr_get_calendar",
      description: "Get upcoming album releases from Lidarr",
      inputSchema: {
        type: "object" as const,
        properties: {
          days: {
            type: "number",
            description: "Number of days to look ahead (default: 30)",
          },
        },
        required: [],
      },
    },
  • Handler for lidarr_get_calendar tool call. Calculates date range (default 30 days ahead), calls clients.lidarr.getCalendar(start, end), and returns formatted album data (id, title, artistId, releaseDate, albumType, monitored).
    case "lidarr_get_calendar": {
      if (!clients.lidarr) throw new Error("Lidarr 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.lidarr.getCalendar(start, end);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            count: calendar.length,
            albums: calendar.map(a => ({
              id: a.id,
              title: a.title,
              artistId: a.artistId,
              releaseDate: a.releaseDate,
              albumType: a.albumType,
              monitored: a.monitored,
            })),
          }, null, 2),
        }],
      };
    }
  • Helper method on LidarrClient (extends ArrClient) that makes the actual API call to /calendar endpoint with start/end date parameters. Returns typed Album[] data.
    async getCalendar(start?: string, end?: string): Promise<Album[]> {
      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']<Album[]>(`/calendar${query}`);
    }
Behavior2/5

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

No annotations are present, so the description must bear full burden. It does not disclose any behavioral traits such as default time range, data source (e.g., releases from today or a start date), or whether it returns only future releases. The input schema indicates a 'days' parameter with a default of 30, but this is not reflected in the description.

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 sentence with no wasted words. It is front-loaded and quickly conveys the core purpose. While efficient, it omits potentially useful details like the default behavior.

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?

For a simple tool with one optional parameter and no output schema, the description provides the basic idea. However, it lacks context about the default value, start point for the calendar, or how results are ordered. An agent would benefit from a slightly fuller description.

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% for the single parameter 'days', which is already described as a number for lookahead days. The description adds no additional meaning beyond the schema, so baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it retrieves upcoming album releases from Lidarr, using a specific verb and resource. However, it does not differentiate from sibling calendar tools like radarr_get_calendar or sonarr_get_calendar, which have identical descriptions minus the service name.

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 like lidarr_search_album or other calendar tools. The description lacks any when-to-use or when-not-to-use context.

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