Repair wrong metadata
fix_metadataRepairs films and series whose media-server metadata does not describe the file on disk (a file Episode 101 shown as S1E1 with another title). Not trigger_scan, which never replaces a wrong title.
Instructions
Repairs films and series whose media-server metadata does not describe the file on disk (a file Episode 101 shown as S1E1 with another title). Not trigger_scan, which never replaces a wrong title. Give a title as query, or the id get_metadata_issues printed. The preview lists numbering findings (confident) and title findings (advisory); a film is judged on year and title. Destructive: re-identifies the item against TVDB or TMDB and replaces all its metadata, hand edits included. Jellyfin has no undo. Emby has no undo. Locked fields are never overwritten. When the preview says a refresh cannot move the episodes, use trigger_scan action: "rename" on the Sonarr series, then a media-server rescan. On Jellyfin the repair holds the request open a long time: do not retry. A Grimmory book is grimmory:<book id>, matched by ISBN or title and author. For music, id: "lidarr:<artistId>" retags its files. Previews first; confirm to apply. Field reference: arr://docs/fix_metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fix_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The media server item id, as get_metadata_issues prints it (`plex:119962`) or bare, or a Grimmory book as `grimmory:<book id>`, or a Lidarr artist as `lidarr:<artistId>`. Wins over `query`. | |
| isbn | No | Books only: search Grimmory's providers by this ISBN instead of the book's own. | |
| user | No | Whose view of the library to read the episodes through. Defaults to the media server's default_user; on Jellyfin or Emby, naming anyone else needs services.jellyfin.allow_other_users or services.emby.allow_other_users. | |
| files | No | Music only: the Lidarr track file ids to retag, as the preview prints them (`#123`). Omit for every file that differs. | |
| query | No | A film or series title. Resolved through the library index, the same way get_media_details resolves one. | |
| confirm | No | The token from this tool's preview; pass it back to apply. | |
| dry_run | No | Preview only, no token issued: for "what if" questions, not the first step of a change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noop | Yes | ||
| tier | Yes | ||
| tool | Yes | ||
| target | Yes | ||
| applied | Yes | ||
| dry_run | Yes | ||
| effects | Yes | ||
| service | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| permission | Yes |