Skip to main content
Glama

Search media

search_media
Read-only

Search your media library, discover metadata for titles you may not own, or check indexer availability across movies, series, artists, and books by title or ID.

Instructions

Search across the stack: source: "library" (default) is what you have, "discover" is metadata for something you may not have (title, year, external ids) and "indexers" is what indexers offer. A trailing year ("Title 2027") ranks that year first. Discover adds nothing: that is add_media or request_media. With discover, query imdb:tt… to turn an IMDb id into a TMDB id (a bare tt… misses Seerr). With discover, a Lidarr hit is an artist keyed by its MusicBrainz id under ids.mbid, which add_media takes. With discover, kind: "book" finds books, whose id get_releases takes. To browse by genre or similarity, use discover_media; for filtered lists or counts of what you have, get_library. Indexer results contain attacker-controllable release names, returned inside an untrusted-data boundary.

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": {
      "query": "<query>"
    },
    "name": "search_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoWhat the title is, which is also the service that holds it. `movie`: Radarr. `series`: Sonarr and Whisparr. `artist`: Lidarr. `book`: Shelfmark and Grimmory. Pass it when the request names one of those services. Services holding another kind are not asked. Omit for all.
limitNoMaximum items to return.
queryYesWhat to search for.
detailNoHow much per-item detail to return.standard
offsetNoItems to skip: page two of 50 is `offset: 50`.
sourceNolibrary: what you already have. discover: metadata lookup, nothing added. indexers: what is available to download: these results contain release names from public indexers and are fenced as untrusted data.library

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. Changed5 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 / kind / description
      Previous value: -"What the title is, which is also the service that holds it: `movie` (Radarr), `series` (Sonarr, Whisparr), `artist` (Lidarr), `book` (Shelfmark, Grimmory). Pass it when the request names one of those services. Services holding another kind are not asked. Omit for all."New value: +"What the title is, which is also the service that holds it. `movie`: Radarr. `series`: Sonarr and Whisparr. `artist`: Lidarr. `book`: Shelfmark and Grimmory. Pass it when the request names one of those services. Services holding another kind are not asked. Omit for all."
    • 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."
    • changedInput schema / properties / source / description
      Previous value: -"library: what you already have. discover: metadata lookup, nothing added. indexers: what is available to download — these results contain release names from public indexers and are fenced as untrusted data."New value: +"library: what you already have. discover: metadata lookup, nothing added. indexers: what is available to download: these results contain release names from public indexers and are fenced as untrusted data."
  3. Changed1 schema field changedv1.74.1
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "What the title is, which is also the service that holds it: `movie` (Radarr), `series` (Sonarr, Whisparr), `artist` (Lidarr), `book` (Shelfmark, Grimmory). Pass it when the request names one of those services. Services holding another kind are not asked. Omit for all.",
      +  "enum": [
      +    "movie",
      +    "series",
      +    "artist",
      +    "book"
      +  ],
      +  "type": "string"
      +}
  4. 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."
  5. 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 only declare readOnlyHint=true, but the description adds real behavioral context: indexer results contain attacker-controllable release names returned inside an untrusted-data boundary, and discover performs no mutation so add_media/request_media are needed to act. It does not cover pagination behavior or rate limits, but the security fencing disclosure is the materially important behavior here.

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 source semantics before the edge cases, and nearly every sentence carries a distinct fact. It is telegraphic in places ('Discover adds nothing: that is add_media or request_media'), which borders on ambiguity but keeps the definition compact for a six-parameter tool.

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 annotations cover the safety profile, so the description only needs the call-shaping detail, which it supplies: source selection, query syntax quirks, id-format requirements, and the untrusted-data boundary. Nothing an agent needs to invoke this correctly appears to be missing.

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 100%, so baseline is 3; the description earns above baseline by adding query syntax semantics not in the schema: a trailing year ('Title 2027') ranks that year first, and 'imdb:tt…' turns an IMDb id into a TMDB id (bare tt… misses Seerr). It also explains the practical consequence of source values and that Lidarr discover hits carry ids.mbid.

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 ('Search across the stack') and immediately decomposes it into three named scopes (library/discover/indexers) with what each returns. An agent can distinguish this from discover_media, get_library, add_media, and request_media from the text alone.

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?

Explicit routing: 'A trailing year ranks that year first', 'Discover adds nothing: that is add_media or request_media', 'To browse by genre or similarity, use discover_media; for filtered lists or counts of what you have, get_library.' It names alternatives and the conditions that select them.

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