Skip to main content
Glama

Library

get_library
Read-only

List and count movies, series, artists, and books across *arr apps and your media server, with filters and presence checks to spot unmanaged or broken imports.

Instructions

Your library joined across Radarr, Sonarr, Whisparr, Lidarr, Grimmory and your media server on shared external ids. Use it for filtered lists and counts; for one title use get_media_details. presence is what no single service can tell: arr_only with a file is a likely broken import, jellyfin_only (spelled that way for any media server) is media nothing manages, and unknown means the other half was not read. When degraded or note explain a gap, report that reason rather than calling it unwatched or unrated. has_file: false with monitored: true is what you are still waiting for. An artist's monitored is the artist-level flag, not the album flag; its albums and their ids come from get_media_details on the Lidarr artist. A series has an IMDb rating only with the IMDb dataset on, so ask rating_source: "imdb" explicitly. Series seasons and folder paths need detail: "full". Field reference: arr://docs/get_library.

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_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOnly films, series, Lidarr artists or Grimmory books; omit for all.
sortNoOrder applied before `limit`: rating, added and year descending, title ascending; set it when paging with `offset`, or items can move between pages.
userNoWhose playback to read; defaults to the configured default_user, any other needs allow_other_users.
yearNo
genreNoMatched case-insensitively against the *arr genres.
limitNoMaximum items to return.
detailNoHow much per-item detail to return.standard
offsetNoItems to skip: page two of 50 is `offset: 50`.
libraryNoA Grimmory library, by name; matches books only.
qualityNoFilms, or a book's file format such as EPUB.
watchedNoThe media server's watch state, or a Grimmory book's read status; pair with `user` for someone else.
has_fileNoWhether a file is on disk; for an artist, any track.
presenceNoboth, arr_only (likely broken import), jellyfin_only (unmanaged, any media server) or unknown (the other half was not read).
monitoredNo
min_ratingNoMinimum rating on a 0-10 scale, whatever the source.
watched_byNo
added_sinceNoOnly items added at or after this ISO 8601 date; items with none are left out.
rating_sourceNoWhich rating `min_rating` and `sort: "rating"` use; defaults to the best-covered source.

Output Schema

NameRequiredDescriptionDefault
noteNo
itemsYes
totalYes
countsNo
offsetYes
degradedYes
returnedYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 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`."
    • changedInput schema / properties / sort / description
      Previous value: -"Order applied before `limit`: rating, added and year descending, title ascending."New value: +"Order applied before `limit`: rating, added and year descending, title ascending; set it when paging with `offset`, or items can move between pages."
    • removedInput schema / properties / watched_by / description
      Removed value: -"Whose playback to read; defaults to the configured default_user, any other needs allow_other_users."
  2. Changed14 schema fields changedv1.84.0
    • changedInput schema / properties / added_since / description
      Previous value: -"Only items added at or after this ISO 8601 date. Items with no added date are left out."New value: +"Only items added at or after this ISO 8601 date; items with none are left out."
    • 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 / has_file / description
      Previous value: -"Whether a file is actually on disk. For an artist this means any track of any of its albums is on disk. `false` with `monitored: true` is \"what am I still waiting for\"; `true` is \"what can I watch now\". Media no *arr manages is excluded from both answers rather than counted as missing — nothing is going to fetch it."New value: +"Whether a file is on disk; for an artist, any track."
    • changedInput schema / properties / kind / description
      Previous value: -"Films, series, Lidarr artists or Grimmory books. Omit for all."New value: +"Only films, series, Lidarr artists or Grimmory books; omit for all."
    • changedInput schema / properties / library / description
      Previous value: -"A Grimmory library, by name. Matches books only."New value: +"A Grimmory library, by name; matches books only."
    • 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 / min_rating / description
      Previous value: -"Always 0-10, regardless of source. Metacritic and Rotten Tomatoes are reported in the response on their native 0-100 scale, but rescaled to 0-10 for this comparison."New value: +"Minimum rating on a 0-10 scale, whatever the source."
    • 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."
    • changedInput schema / properties / presence / description
      Previous value: -"both / arr_only (possible broken import) / jellyfin_only (unmanaged media — the value keeps this name whichever media server is configured) / unknown (media server degraded or unconfigured, so arr_only cannot be asserted; for an artist it also means the music read did not run)."New value: +"both, arr_only (likely broken import), jellyfin_only (unmanaged, any media server) or unknown (the other half was not read)."
    • changedInput schema / properties / rating_source / description
      Previous value: -"Defaults to whichever source covers the most of your library. `tvdb` is series-only."New value: +"Which rating `min_rating` and `sort: \"rating\"` use; defaults to the best-covered source."
    • changedInput schema / properties / sort / description
      Previous value: -"Order the results *before* `limit` is applied — which is what makes \"the best rated\" or \"most recently added\" answerable at all, since a filter alone would leave the top item outside the returned window. `rating` is descending and uses `rating_source`, excluding items that source has no rating for and reporting them in `ratingCoverage`; `added` is newest first and excludes media no *arr manages, which has no added date; `year` is descending; `title` ascending. Omit to keep the library's own order."New value: +"Order applied before `limit`: rating, added and year descending, title ascending."
    • changedInput schema / properties / user / description
      Previous value: -"Whose playback to read. Defaults to the configured default_user; any other value requires allow_other_users."New value: +"Whose playback to read; defaults to the configured default_user, any other needs allow_other_users."
    • changedInput schema / properties / watched / description
      Previous value: -"The media server's watch state, or a Grimmory book's read status (READ is watched). Items it has never seen count as unwatched. Pair with `user` to ask about someone else."New value: +"The media server's watch state, or a Grimmory book's read status; pair with `user` for someone else."
    • changedInput schema / properties / watched_by / description
      Previous value: -"Whose playback to read. Defaults to the configured default_user; any other value requires allow_other_users."New value: +"Whose playback to read; defaults to the configured default_user, any other needs allow_other_users."
  3. Changed20 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
    • removedInput schema / properties / year / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / year / minimum
      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 / note / description
      Removed value: -"Present when a fact about the stack's config, not this call, needs stating — no media server configured at all, or one configured with no default_user."
    • 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.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true; the description adds substantial interpretation layer beyond that: what each `presence` value means, that `degraded`/`note` indicate an unread half and must be reported as a gap rather than as unwatched/unrated, and that `has_file: false` with `monitored: true` is a pending item. It also warns that an artist's `monitored` is artist-level, not album-level.

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?

Front-loaded with purpose and the alternative, then ordered by parameter importance, with a docs pointer (arr://docs/get_library) instead of exhaustive field prose. It is dense for an 18-parameter tool, though inline asides such as the 'spelled that way for any media server' note slightly slow parsing.

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?

For an 18-parameter, multi-service join, the description covers the ambiguous semantics (presence, degraded/note, monitored scoping, rating source, detail level) and defers return-value shape to the existing output schema. An agent has everything needed to call it and interpret the results correctly.

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 83%, so the baseline is 3; the description earns an extra point by adding non-obvious semantics: that `rating_source` governs both `min_rating` and `sort: "rating"` and must be requested explicitly, and that `detail: "full"` is required for series seasons and folder paths. It does not document the remaining bare parameters (year, monitored, watched_by) beyond the schema.

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?

Opens with a specific resource and scope: a library joined across Radarr, Sonarr, Whisparr, Lidarr, Grimmory and the media server on shared external ids. It immediately distinguishes itself from the sibling get_media_details ('for one title use get_media_details'), so an agent can route between the two without opening a 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 when-to-use ('filtered lists and counts'), when-not and the named alternative for single titles. It also states conditional usage rules an agent would otherwise get wrong: ask `rating_source: "imdb"` explicitly for series IMDb ratings, and use `detail: "full"` for seasons and folder paths.

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