Skip to main content
Glama
sonarr-mcp

sonarr-mcp

by OrellBuehler

delete_root_folder

DestructiveIdempotent

Remove a root folder from Sonarr without touching files on disk.

Instructions

Remove a root folder from Sonarr. Files on disk are not touched.

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": {
      "id": "<id>"
    },
    "name": "delete_root_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRoot folder id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / id / exclusiveMinimum
      Added value: +0
    • addedInput schema / properties / id / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / id / type
      Previous value: -"number"New value: +"integer"
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is largely covered. The description still earns credit by disclosing the one genuinely non-obvious behavior — media files on disk are untouched, only the Sonarr record is removed. It does not say whether the call fails when series are still attached to the folder, which is the main remaining behavioral risk for a destructive mutation.

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?

Two short sentences, front-loaded with the action and followed by the constraint that matters most. No filler, no restatement of the tool name, and the caveat is placed where it will actually be read.

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 tool with full annotations and full schema coverage, the definition is nearly sufficient: action, name, and the key data-safety reassurance are all present. The one gap is dependency handling — whether attached series block the deletion or are orphaned — which matters for a destructive operation and is left unstated.

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?

There is a single required parameter with 100% schema description coverage ("Root folder id"), so the schema already carries the semantics. The description adds nothing about how to obtain a valid id (e.g. via list_root_folders) or about behavior with an unknown id. Baseline 3 applies when the schema does the heavy lifting.

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?

"Remove a root folder from Sonarr" gives a specific verb plus a clearly scoped resource, and the second sentence immediately limits the blast radius. An agent can distinguish it from siblings such as list_root_folders, add_root_folder and delete_series without inspecting the schema. It stops short of explicitly naming a sibling, which keeps it at 4 rather than 5.

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?

There is no when-to-use or when-not-to-use guidance: no note on whether the folder must be empty, what happens to series still pointing at it, or which sibling to use for inspecting folders first. The purpose implicitly suggests the usage, but the agent must infer every precondition.

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