Skip to main content
Glama

lidarr_get_root_folders

Retrieve available root folders for Lidarr to identify valid rootFolderPath values when adding a new artist.

Instructions

Get available root folders for Lidarr. Use this to find valid rootFolderPath values when adding an artist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:661-668 (registration)
    The tool 'lidarr_get_root_folders' is registered in the TOOLS array within the Lidarr section. It has an empty input schema and a description for use when adding an artist.
      name: "lidarr_get_root_folders",
      description: "Get available root folders for Lidarr. Use this to find valid rootFolderPath values when adding an artist.",
      inputSchema: {
        type: "object" as const,
        properties: {},
        required: [],
      },
    },
  • The handler case for 'lidarr_get_root_folders' in the CallToolRequestSchema switch statement. It calls clients.lidarr.getRootFolders() and returns the result as JSON.
    case "lidarr_get_root_folders": {
      if (!clients.lidarr) throw new Error("Lidarr not configured");
      const folders = await clients.lidarr.getRootFolders();
      return {
        content: [{
          type: "text",
          text: JSON.stringify(folders, null, 2),
        }],
      };
    }
  • The getRootFolders() method on ArrClient (inherited by LidarrClient). It calls the /rootfolder API endpoint and returns an array of root folders with id, path, and freeSpace.
    async getRootFolders(): Promise<Array<{ id: number; path: string; freeSpace: number }>> {
      return this.request<Array<{ id: number; path: string; freeSpace: number }>>('/rootfolder');
    }
Behavior3/5

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

No annotations are provided, so the description must convey behavioral traits. It implies a read-only operation ('Get'), but lacks explicit statements about safety, side effects, or any prerequisites. The description is adequate but does not go beyond the basic nature of the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two succinct sentences that front-load the purpose and immediately provide actionable usage advice. No unnecessary words; every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with no parameters and no output schema, the description is fairly complete: it explains what is retrieved and why. However, it does not describe the return format or any potential limitations, leaving a minor gap for an agent relying solely on this description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero parameters and schema coverage is 100% (trivially). Per guidelines, a tool with no parameters receives a baseline score of 4. The description adds no parameter info, which is appropriate since none exist.

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 tool retrieves available root folders for Lidarr, directly identifying its purpose. It also explicitly links this to finding valid rootFolderPath values when adding an artist, which distinguishes it from sibling tools like radarr_get_root_folders or sonarr_get_root_folders.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly guides usage: 'Use this to find valid rootFolderPath values when adding an artist.' This tells the agent when to invoke the tool. While it does not mention when not to use it or provide alternative tools, the context is clear due to the tool's specific name and unique role among siblings.

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