Skip to main content
Glama

search_media

Read-only

Search Plex libraries for movies, shows, episodes, artists, albums, or tracks by query, with optional type and library filters plus pagination.

Instructions

Search for media in Plex libraries

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
typeNoMedia type (movie, show, season, episode, artist, album, track)
limitNoNumber of items to return (default: 500)
queryYesSearch query
offsetNoZero-based offset for pagination (default: 0)
libraryKeyNoLibrary section key to restrict search (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.9.0
    • changedInput schema / properties / type / description
      Previous value: -"Media type (movie, show, episode, artist, album, track)"New value: +"Media type (movie, show, season, episode, artist, album, track)"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "movie",
      -  "show",
      -  "episode",
      -  "artist",
      -  "album",
      -  "track"
      -]New value: +[
      +  "movie",
      +  "show",
      +  "season",
      +  "episode",
      +  "artist",
      +  "album",
      +  "track"
      +]
  2. Changed3 schema fields changedv1.2.0
    • addedInput schema / properties / libraryKey
      Added value: +{
      +  "description": "Library section key to restrict search (optional)",
      +  "type": "string"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 500,
      +  "description": "Number of items to return (default: 500)",
      +  "type": "number"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Zero-based offset for pagination (default: 0)",
      +  "type": "number"
      +}
  3. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds nothing beyond that — no note on result ordering, default page size behavior, or how limits apply across large libraries.

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?

A single front-loaded sentence with zero waste. It is efficient, though the brevity edges into under-specification rather than crispness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With five fully documented parameters and read-only annotations the essentials are covered, but there is no output schema and the description does not say what a result contains or how results are ordered/paged in practice, leaving an agent to guess at return shape.

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%, with every parameter (query, type, limit, offset, libraryKey) documented inline including the enum values and defaults. The description contributes no additional semantic detail, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb ('Search') plus resource ('media') plus the scoping qualifier 'in Plex libraries', which distinguishes it from the many sibling search tools (sonarr_search, radarr_search, trakt_search) that target other services. It is clear, though it says nothing about what the search matches on (title, cast, etc.).

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

Usage Guidelines2/5

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

There is no explicit guidance on when to choose this over get_library_items, get_media_details, or the Sonarr/Radarr/Trakt search siblings. Usage is only implied by the word 'Search'; no exclusions or conditions are stated.

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