Skip to main content
Glama

Metadata issues

get_metadata_issues
Read-only

Scan the whole media library for series whose metadata doesn't match the files on disk, even without a title, and get a fix suggestion for each finding.

Instructions

Sweeps the whole media-server library for series whose metadata does not describe the files on disk: the discovery fix_metadata cannot do, since it needs a title. Each row has numbering findings (confident), titleOnly findings (advisory) and a remedy: refresh_metadata, rename_files (the filename is the outlier, which no refresh fixes) or unlock_fields. Pass a row's service:itemId to fix_metadata as id. Slow: one call per series. Read-only. With Grimmory it also lists books whose match score is under 45, as grimmory:<id>. Titles and paths are fenced as untrusted data. Field reference: arr://docs/get_metadata_issues.

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": "get_metadata_issues"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum items to return.
detailNoHow much per-item detail to return.standard
offsetNoItems to skip: page two of 50 is `offset: 50`.

Output Schema

NameRequiredDescriptionDefault
itemsYes
totalYes
countsNo
offsetYes
degradedYes
returnedYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.2.0
    • changedInput schema / properties / detail / description
      Previous value: -"How much per-item detail to return; defaults to standard."New value: +"How much per-item detail to return."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum items to return; defaults to 50, hard maximum 500."New value: +"Maximum items to return."
    • changedInput schema / properties / offset / description
      Previous value: -"Items to skip: page two of 50 is `offset: 50`; pair it with `sort`, or items can move between pages."New value: +"Items to skip: page two of 50 is `offset: 50`."
  2. Changed3 schema fields changedv1.84.0
    • changedInput schema / properties / detail / description
      Previous value: -"How much per-item detail to return. Defaults to standard."New value: +"How much per-item detail to return; defaults to standard."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum items to return. Defaults to 50, hard maximum 500."New value: +"Maximum items to return; defaults to 50, hard maximum 500."
    • changedInput schema / properties / offset / description
      Previous value: -"Items to skip: page two of 50 is `offset: 50`. Pair it with `sort`, or items can move between pages."New value: +"Items to skip: page two of 50 is `offset: 50`; pair it with `sort`, or items can move between pages."
  3. Changed17 schema fields changedv1.74.0
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / offset / description
      Previous value: -"How many items to skip before the window `limit` returns — page two of 50 is `offset: 50`. `total` always counts the whole list, so `offset + returned < total` is how you know there is another page. Pair it with `sort` for a stable walk: without one the order is whatever the services returned, and an item can move between pages."New value: +"Items to skip: page two of 50 is `offset: 50`. Pair it with `sort`, or items can move between pages."
    • removedInput schema / properties / offset / maximum
      Removed value: -9007199254740991
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedOutput schema / properties / counts / description
      Removed value: -"How many results each service contributed."
    • removedOutput schema / properties / degraded / description
      Removed value: -"Services that could not be reached. Their contribution is missing from `items`, so a short list may be an outage rather than an answer."
    • removedOutput schema / properties / items / description
      Removed value: -"The window of results. What an item carries depends on the tool and on `detail`."
    • removedOutput schema / properties / offset / description
      Removed value: -"How many were skipped. `offset + returned < total` means there is another page."
    • removedOutput schema / properties / offset / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / offset / minimum
      Removed value: --9007199254740991
    • removedOutput schema / properties / returned / description
      Removed value: -"How many are in `items`."
    • removedOutput schema / properties / returned / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / returned / minimum
      Removed value: --9007199254740991
    • removedOutput schema / properties / total / description
      Removed value: -"How many matched in total — the whole list, never the window. Compare against `returned` before reporting a count to anyone."
    • removedOutput schema / properties / total / maximum
      Removed value: -9007199254740991
    • removedOutput schema / properties / total / minimum
      Removed value: --9007199254740991
    • removedOutput schema / properties / truncated / description
      Removed value: -"True when this is not the whole list — including on the last page of a paged walk, where the rest is behind you rather than ahead."
  4. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and the description reinforces it with 'Read-only', so no contradiction. Beyond the annotations it adds real operational context: the per-series cost that makes it slow, the meaning of the three remedy values (including that `rename_files` cases cannot be fixed by a refresh), the Grimmory book listing under the 45-score threshold, and untrusted-data fencing. Only the output-schema-covered row shape is left to structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the fix_metadata contrast are front-loaded, and the remedy vocabulary is packed into a compact clause. It is dense but nearly every sentence carries non-obvious information; the only slight cost is that the single paragraph packs multiple distinct concerns (cost, security, provider-specific behavior) without separation.

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?

An output schema exists and the description still adds the interpretation an agent needs (remedy -> action), plus performance and security caveats. Nothing needed to call it correctly or act on its results is missing, and the arr://docs field reference covers deeper detail.

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 the schema already documents limit, offset, and the detail enum. The description adds no syntax or selection guidance for those parameters, so baseline 3 is appropriate.

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 ('Sweeps the whole media-server library for series whose metadata does not describe the files on disk') and immediately distinguishes itself from the sibling fix_metadata by explaining that fix_metadata needs a title. An agent knows exactly what this returns and how it differs from the fix tool.

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?

Explicitly frames this as the discovery step that fix_metadata cannot perform, and prescribes the handoff: 'Pass a row's `service:itemId` to fix_metadata as `id`.' It also warns that this is slow (one call per series), which tells the agent when to prefer narrower calls. Alternatives and conditions are both present.

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