Skip to main content
Glama
sonarr-mcp

sonarr-mcp

by OrellBuehler

update_episode_files

Idempotent

Update the recorded quality, languages, release group, or scene name of existing episode files without modifying files on disk.

Instructions

Change the recorded quality, languages, release group or scene name of existing episode files (the file editor). Does not touch the files on disk.

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": {
      "episode_file_ids": "<episode_file_ids>"
    },
    "name": "update_episode_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
qualityNoQualityModel object, e.g. { quality: { id: 9 }, revision: { version: 1 } }
languagesNoLanguage objects, e.g. [{ id: 1, name: 'English' }] — see list_languages
scene_nameNoScene name to record
release_groupNoRelease group to record
episode_file_idsYesEpisode file ids to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / languages / items / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / quality / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare non-readOnly, idempotent, non-destructive, and the description meaningfully extends that by clarifying the change is to *recorded* metadata and 'Does not touch the files on disk' — a distinction an agent could easily get wrong for a mutation tool. It stops short of saying how omitted fields are treated (partial vs full replace), which is the one behavioral detail left implicit.

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: the primary effect first, then the important scoping constraint. No filler, no restating of the title, and the load-bearing 'does not touch disk' caveat sits where it will 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 5-parameter mutation tool with nested objects and no output schema, the description covers the essential questions: what changes, on which entities, and that disk files are untouched. Missing only the partial-update contract and confirmation of what the response returns, which are minor given the annotations and full schema coverage.

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 description coverage is 100%, so every parameter (including the quality and languages object shapes and the episode_file_ids list) is already documented in the schema. The description only restates the field names, adding no format, example, or interaction semantics beyond it — baseline 3 applies.

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 ('Change') plus the resource ('existing episode files') and enumerates the exact fields editable (quality, languages, release group, scene name). The parenthetical '(the file editor)' positions it clearly against the delete_* and list_* siblings without needing their schemas.

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

Usage Guidelines3/5

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

Usage is implied: edit metadata on files that already exist. There is no explicit statement of when to prefer it over other update tools, no prerequisite on file existence or required permissions, and no note about what to do for files not yet imported — guidance is inferable but not spelled out.

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