Skip to main content
Glama
sonarr-mcp-server

sonarr-mcp-server

by slate63

Delete episode files

sonarr_delete_episode_files
Destructive

Permanently delete selected episode files from disk by episode file ID, making episodes missing; confirm with the user before deletion.

Instructions

Permanently delete episode files from disk (IDs from sonarr_list_episode_files). The episodes become missing. Confirm with the user first.

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": {
      "episodeFileIds": "<episodeFileIds>"
    },
    "name": "sonarr_delete_episode_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
episodeFileIdsYesEpisode file IDs

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the bar is lower, yet the description still adds real consequence information: the files are removed from disk permanently and the episodes become "missing" afterward. It does not cover failure behavior (partial deletion with invalid IDs, or whether a recycle bin is involved), so it stops short of full disclosure.

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?

Three short sentences with no filler; the permanence and disk-level effect are front-loaded, and the ID source and confirmation requirement follow in order of need. Every clause carries distinct information.

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 one-parameter destructive tool with no output schema, the definition covers what is destroyed, the resulting series state, where IDs come from, and the user-confirmation gate. The remaining gap is error/partial-success behavior, which an agent would otherwise have to discover by calling it.

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?

With one parameter and 100% schema coverage the baseline is 3, but the description adds provenance the schema cannot: episode file IDs should be obtained from sonarr_list_episode_files rather than guessed. It does not add batch-size or partial-failure semantics for the array.

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?

"Permanently delete episode files from disk" states a specific verb (delete) and resource (episode files), and the parenthetical names sonarr_list_episode_files as the ID source, which separates it from the file-listing tool. It does not explicitly contrast with sonarr_delete_series, so an agent must infer the file-vs-series distinction from the noun alone.

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?

"Confirm with the user first" gives a concrete precondition, and "(IDs from sonarr_list_episode_files)" tells the agent which sibling to call before invoking this one. There is no explicit statement of when not to use it (e.g. use series deletion instead), so the routing guidance is clear but not exhaustive.

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