Skip to main content
Glama

sonarr_purge_season

Purge a season by deleting its episode files in Sonarr and removing matching torrents in qBittorrent (including cross-seeds). Use confirm to execute or dry-run.

Instructions

Purge a whole season everywhere: delete its episode files in Sonarr AND remove the matching torrent(s) in qBittorrent-via-qui, cross-seeds included (destructive).

The torrents are located via the season's history downloadId(s) and their qui cross-seed siblings. include_loose_matches=False drops name/release-matched siblings (keeps content_path matches). delete_torrent_files also deletes the torrents' files from disk. Set confirm=True to execute; False for a dry-run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
series_idYes
season_numberYes
delete_torrent_filesNo
include_loose_matchesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations provided, but the description fully covers behaviors: destructive action, cross-seed inclusion, torrent location via history downloadIds, and effects of include_loose_matches and delete_torrent_files. The dry-run capability is also disclosed.

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?

The description is concise with two paragraphs: a summary first, then details on how torrents are located and parameter behavior. Every sentence adds value without redundancy.

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

Completeness5/5

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

Given the complexity of multi-system purge with cross-seeds and options, the description covers all key aspects. An output schema exists, so return values need not be explained. The description is adequate for an agent to invoke correctly.

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

Parameters5/5

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

Schema coverage is 0%, but the description explains three of five parameters: confirm (dry-run vs execute), include_loose_matches (drops name/release-matched siblings), and delete_torrent_files (deletes from disk). series_id and season_number are self-explanatory from the tool name and context.

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 purges a whole season by deleting episode files in Sonarr and removing matching torrents in qBittorrent, including cross-seeds. It distinguishes itself from siblings like sonarr_delete_season and radarr_purge_movie by specifying the multi-system cleanup.

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 explains the dry-run mechanism with confirm and details on options like include_loose_matches and delete_torrent_files. However, it does not explicitly state when to use this tool over alternatives (e.g., sonarr_delete_season for Sonarr-only cleanup), leaving some ambiguity.

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/ava-hip/mcp-media-stack'

If you have feedback or need assistance with the MCP directory API, please join our Discord server