Skip to main content
Glama

plex_media

Browse, search, and update metadata in your Plex library. Filter by genre, actor, rating, or recency to discover and manage media.

Instructions

Comprehensive media management operations for Plex Media Server.

PORTMANTEAU PATTERN RATIONALE: Consolidates media browsing, advanced searching, and metadata updates into a single tool. Optimizes for discovery and detail retrieval across all library types.

OPERATIONS:

  • browse: Browse library contents with optional filtering.

  • search: Advanced search across libraries with multiple filters.

  • get_details: Get comprehensive details about a specific media item.

  • get_recent: Get recently added media items.

  • update_metadata: Update metadata (title, year, summary) for an item.

Return Format

{"success": bool, "data": dict|list, "operation": str, "count": int}

Examples

await plex_media(operation="browse", library_id="1") await plex_media(operation="search", query="inception") await plex_media(operation="get_details", media_key="12345")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoFilter by release year.
actorNoFilter by actor name.
genreNoFilter by genre name.
limitNoMaximum number of results to return.
queryNoSearch query string for text-based searches.
offsetNoNumber of results to skip for pagination.
directorNoFilter by director name.
metadataNoMetadata fields to update (title, year, summary, etc.).
media_keyNoKey of the specific media item for detail or update operations.
operationYesThe media operation to perform.
unwatchedNoFilter to only unwatched items.
library_idNoID of the library to browse or search within.
media_typeNoFilter by media type (movie, episode, track).
min_ratingNoMinimum rating filter (0.0-10.0).
Behavior3/5

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

Annotations only indicate readOnlyHint=false and destructiveHint=false, which are minimal and default-like. The description adds the return format and operation semantics, including the existence of update_metadata as a mutation. However, it does not disclose whether updates are persistent, require permissions, or have side effects. This is acceptable but not rich beyond the structured data.

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?

The description is well-structured with clear sections (rationale, operations, return format, examples). Some redundancy exists between 'comprehensive media management' and the portmanteau rationale, but each section serves a purpose and the length is justified given the tool's complexity. Front-loading the operations list aids quick scanning.

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?

The description covers the core return format and provides examples for three of the five operations, but it lacks explicit mapping of parameters to operations and omits examples for get_recent and update_metadata. Given the tool's 14 parameters and multiple operations, this leaves gaps for an agent to infer correct usage, though the schema and operation list provide partial coverage.

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 baseline is 3. The description adds some value through examples that map parameters to operations (e.g., library_id for browse, query for search, media_key for get_details) and mentions metadata fields. But it does not systematically explain which parameters apply to which operation, relying largely on the schema's already-descriptive fields.

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?

The description clearly states it is a comprehensive media management tool with a specific list of operations (browse, search, get_details, get_recent, update_metadata). Each operation is described with a verb and resource, and the portmanteau rationale explicitly differentiates it from more specialized sibling tools by consolidating multiple capabilities into one interface.

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

Usage Guidelines3/5

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

The description provides clear context for when to use this tool (for browsing, searching, and metadata updates) via the operations list and portmanteau rationale. However, it does not explicitly mention alternatives or exclusions, even though siblings like plex_search, plex_metadata, and plex_library likely overlap. The usage is implied but not contrasted with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandraschi/plexmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server