Skip to main content
Glama
sonarr-mcp-server

sonarr-mcp-server

by slate63

Raw Sonarr API request

sonarr_api_request
Destructive

Call any Sonarr API endpoint directly to retrieve or modify raw JSON data for resources without a dedicated tool, supporting GET, POST, PUT, and DELETE with custom paths, queries, and bodies.

Instructions

Call any Sonarr API endpoint directly and get the raw JSON response. Paths are relative to /api/v5 (e.g. '/indexer', '/blocklist', '/settings/naming'). Find endpoints with sonarr_list_api_endpoints. For PUT, send the complete resource (GET it first and modify it). Prefer dedicated tools when one exists, and confirm with the user before destructive requests.

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": {
      "path": "<path>"
    },
    "name": "sonarr_api_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body for POST/PUT/DELETE
pathYesEndpoint path, e.g. '/series/12' (relative to /api/v5)
queryNoQuery parameters; arrays become repeated keys
methodNoGET
maxCharsNoTruncate the response after this many characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known; the description adds real operational context beyond that – the /api/v5 base path, the full-resource PUT requirement, and an explicit user-confirmation step for destructive requests. It stops short of covering error behavior (what a failed request returns) or how truncation interacts with a partial JSON body, which keeps it from a 5.

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?

Four sentences, all load-bearing: what it does, how to find endpoints, the PUT rule, and the preference/confirmation policy. The capability statement is front-loaded and nothing is repeated from the schema or annotations.

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?

There is no output schema, and the description compensates by saying the result is raw JSON and noting the response-truncation control is handled by a parameter. For a five-parameter, nested-object, destructive, open-world tool it covers routing, prerequisites, and safety adequately; the remaining gap is error/failure semantics, which an agent would still have to discover.

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?

Schema coverage is 80%, so the baseline would be 3; the description earns a 4 by adding meaning the schema lacks, notably that paths are relative to /api/v5 (with concrete examples like '/settings/naming') and that the body for a PUT must be the complete resource rather than a patch. Method and query semantics are otherwise left to the schema's own descriptions.

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 ('Call any Sonarr API endpoint directly') plus the return shape ('raw JSON response'). The opening sentence makes clear this is the escape hatch beyond the dedicated sibling tools, so an agent can distinguish it from sonarr_add_series or sonarr_get_series without inspecting the schema.

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 routing rules: use sonarr_list_api_endpoints to discover endpoints, prefer dedicated tools when one exists, and confirm with the user before destructive requests. It also supplies the PUT prerequisite (GET the resource first, then modify and send it complete), which is exactly the kind of when/when-not guidance that prevents bad calls.

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