Skip to main content
Glama

sonarr_search_missing

Search all missing episodes in a series to automatically find and download them via Sonarr.

Instructions

Trigger a search for all missing episodes in a series

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seriesIdYesSeries ID to search for missing episodes

Implementation Reference

  • src/index.ts:294-307 (registration)
    Registration of the sonarr_search_missing tool with its input schema requiring a seriesId parameter.
    {
      name: "sonarr_search_missing",
      description: "Trigger a search for all missing episodes in a series",
      inputSchema: {
        type: "object" as const,
        properties: {
          seriesId: {
            type: "number",
            description: "Series ID to search for missing episodes",
          },
        },
        required: ["seriesId"],
      },
    },
  • Handler for the sonarr_search_missing tool call. Validates Sonarr is configured, extracts the seriesId from args, calls clients.sonarr.searchMissing(seriesId), and returns a success response with the command ID.
    case "sonarr_search_missing": {
      if (!clients.sonarr) throw new Error("Sonarr not configured");
      const seriesId = (args as { seriesId: number }).seriesId;
      const result = await clients.sonarr.searchMissing(seriesId);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            success: true,
            message: `Search triggered for missing episodes`,
            commandId: result.id,
          }, null, 2),
        }],
      };
    }
  • Helper method on SonarrClient that sends a POST to /command with name 'SeriesSearch' and the seriesId to trigger searching for missing episodes via the Sonarr API.
    async searchMissing(seriesId: number): Promise<{ id: number }> {
      return this['request']<{ id: number }>('/command', {
        method: 'POST',
        body: JSON.stringify({
          name: 'SeriesSearch',
          seriesId,
        }),
      });
    }
Behavior2/5

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

No annotations are provided, so the description carries full responsibility for behavioral disclosure. It only says 'Trigger a search' without explaining whether the search runs asynchronously, what the response indicates, or any prerequisites. This is insufficient for a mutation-like action.

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, concise sentence that conveys the core action without redundant words. It is front-loaded with the verb and resource, making it efficient. However, it could benefit from slightly more structure to include behavioral notes.

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

Completeness2/5

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

For a tool that triggers an asynchronous search, the description omits crucial context: whether the tool returns immediately, how to monitor results, or what happens if the series ID is invalid. With no output schema and no annotations, the description is incomplete for reliable agent use.

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?

The input schema has 100% coverage for its single parameter 'seriesId', with a description that matches the tool's purpose. The tool description does not add extra semantic detail beyond what the schema already provides, so baseline 3 is appropriate.

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 verb 'Trigger a search' and the resource 'all missing episodes in a series', making its purpose unambiguous. It distinguishes from sibling tools like sonarr_search (general search) and sonarr_search_episode (specific episode).

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?

The description provides no guidance on when to use this tool over alternatives, such as suggesting this tool after adding a series or noting that it searches for missing episodes automatically. No context or exclusions are given.

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