Skip to main content
Glama
sonarr-mcp

sonarr-mcp

by OrellBuehler

run_command

Destructive

Queue a Sonarr command by name to trigger allowed library or maintenance actions, including refreshes, searches, renames, scans, backups, and health checks.

Instructions

Queue a Sonarr command by name. Only library and maintenance commands are allowed: RefreshSeries, RescanSeries, SeriesSearch, SeasonSearch, EpisodeSearch, MissingEpisodeSearch, CutoffUnmetEpisodeSearch, RssSync, RenameFiles, RenameSeries, DownloadedEpisodesScan, ManualImport, RefreshMonitoredDownloads, ProcessMonitoredDownloads, ImportListSync, ClearBlocklist, Housekeeping, MessagingCleanup, CheckHealth, Backup. Commands that update the application or reset the API key are not available. Prefer the dedicated tools (refresh_series, search_series, ...) where one exists.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesCommand name, e.g. 'RssSync'
paramsNoExtra command body fields, e.g. { seriesId: 12 } or { episodeIds: [1, 2] }; a 'name' key is ignored

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / name / enum
      Added value: +[
      +  "RefreshSeries",
      +  "RescanSeries",
      +  "SeriesSearch",
      +  "SeasonSearch",
      +  "EpisodeSearch",
      +  "MissingEpisodeSearch",
      +  "CutoffUnmetEpisodeSearch",
      +  "RssSync",
      +  "RenameFiles",
      +  "RenameSeries",
      +  "DownloadedEpisodesScan",
      +  "ManualImport",
      +  "RefreshMonitoredDownloads",
      +  "ProcessMonitoredDownloads",
      +  "ImportListSync",
      +  "ClearBlocklist",
      +  "Housekeeping",
      +  "MessagingCleanup",
      +  "CheckHealth",
      +  "Backup"
      +]
    • changedInput schema / properties / params / description
      Previous value: -"Extra command body fields, e.g. { seriesId: 12 } or { episodeIds: [1, 2] }"New value: +"Extra command body fields, e.g. { seriesId: 12 } or { episodeIds: [1, 2] }; a 'name' key is ignored"
    • addedInput schema / properties / params / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=true, and the description adds real context beyond them: an explicit allowlist of 20 commands plus a denylist of app-update/API-key-reset operations. It does not disclose that queuing is asynchronous, that a command id is returned, or that status must be polled with get_command, which are notable gaps for a destructive mutation tool.

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

Conciseness3/5

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

The routing guidance is front-loaded and the exclusion sentence earns its place, but the full 20-command enumeration duplicates the schema enum verbatim and dominates the description. Trimming the list to a representative sample would preserve the meaning at a fraction of the length.

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 two-parameter tool with a free-form nested object and no output schema, the definition is adequate on scope but incomplete on execution: it never says the command runs asynchronously, what the call returns, or how to track completion. The per-command params shape, which varies widely, is left entirely undocumented.

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% and the enum already enumerates every allowed command, so the description's 20-command list largely restates structured data. It adds nothing about the free-form 'params' object beyond what the schema says, notably not which keys each command requires (e.g., seasonNumber for SeasonSearch, episodeIds for EpisodeSearch).

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?

States a specific verb and resource ("Queue a Sonarr command by name") and immediately bounds the scope to library and maintenance commands. It distinguishes itself from siblings by naming refresh_series and search_series as preferred alternatives, so an agent can choose between this tool and the dedicated ones without inspecting schemas.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing: "Prefer the dedicated tools (refresh_series, search_series, ...) where one exists," positioning this as a fallback/escape hatch. It also states a hard exclusion ("Commands that update the application or reset the API key are not available"), so the agent knows what will be rejected.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools