Skip to main content
Glama

sonarr_refresh_series

Trigger a metadata refresh for a specific TV series in Sonarr using its series ID.

Instructions

Trigger a metadata refresh for a specific series in Sonarr

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seriesIdYesSeries ID to refresh

Implementation Reference

  • src/index.ts:324-336 (registration)
    Tool registration for 'sonarr_refresh_series' with input schema requiring a seriesId number.
      name: "sonarr_refresh_series",
      description: "Trigger a metadata refresh for a specific series in Sonarr",
      inputSchema: {
        type: "object" as const,
        properties: {
          seriesId: {
            type: "number",
            description: "Series ID to refresh",
          },
        },
        required: ["seriesId"],
      },
    },
  • Handler function for sonarr_refresh_series tool. Calls clients.sonarr.getSeriesById(seriesId) to get series info, then clients.sonarr.refreshSeries(seriesId) to trigger the refresh command.
    case "sonarr_refresh_series": {
      if (!clients.sonarr) throw new Error("Sonarr not configured");
      const seriesId = (args as { seriesId: number }).seriesId;
      const series = await clients.sonarr.getSeriesById(seriesId);
      const result = await clients.sonarr.refreshSeries(seriesId);
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            success: true,
            message: `Refresh triggered for series`,
            series: {
              id: series.id,
              title: series.title,
              year: series.year,
            },
            commandId: result.id,
          }, null, 2),
        }],
      };
    }
  • SonarrClient.refreshSeries() method - posts a POST request to /command with {name: 'RefreshSeries', seriesId} to trigger a metadata refresh.
    async refreshSeries(seriesId: number): Promise<{ id: number }> {
      return this['request']<{ id: number }>('/command', {
        method: 'POST',
        body: JSON.stringify({
          name: 'RefreshSeries',
          seriesId,
        }),
      });
    }
  • SonarrClient.getSeriesById() method - fetches a specific series by ID from /series/{id}, used by the handler to get the series title/year for the response.
    async getSeriesById(id: number): Promise<Series> {
      return this['request']<Series>(`/series/${id}`);
    }
Behavior2/5

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

Annotations are absent, so the description carries full burden. It only says 'trigger a metadata refresh', implying a mutation, but does not disclose idempotency, destructive effects, or required permissions. No behavioral traits beyond the basic 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?

Single sentence, 10 words, no fluff. Could include a bit more context without becoming verbose. Acceptably concise.

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 mutation tool with no output schema and no annotations, the description is incomplete. It fails to explain the effect on the system, response format, or post-refresh state. Missing crucial context for an AI agent to use safely.

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% with a clear parameter description. The tool description adds no additional meaning beyond the schema. Baseline 3 is appropriate.

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 the action (trigger a metadata refresh) and resource (specific series). The verb 'trigger' and noun 'refresh' are specific. However, it does not explicitly differentiate from sibling tools like sonarr_refresh_movie, but the tool name and resource specificity suffice.

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 on when to use this tool versus others. No prerequisites, exclusions, or alternatives mentioned. Among siblings, there is no context for choosing refresh vs. search or get series.

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