Skip to main content
Glama

get_library_metadata_by_ids

Read-onlyIdempotent

Retrieve detailed metadata for one or more Plex library items by their IDs, with options to include extras, markers, chapters, reviews, and related content.

Instructions

Get a metadata item.

GET /library/metadata/{ids}

Args: ids: Comma-separated list of IDs async_check_files: Determines if file check should be performed asynchronously. An activity is created to indicate progress. Default is false. async_refresh_local_media_agent: Determines if local media agent refresh should be performed asynchronously. An activity is created to indicate progress. Default is false. async_refresh_analysis: Determines if analysis refresh should be performed asynchronously. An activity is created to indicate progress. Default is false. check_files: Determines if file check should be performed synchronously. Specifying asyncCheckFiles will cause this option to be ignored. Default is false. skip_refresh: Determines if synchronous local media agent and analysis refresh should be skipped. Specifying async versions will cause synchronous versions to be skipped. Default is false. check_file_availability: Determines if file existence check should be performed synchronously. Specifying checkFiles will imply this option. Default is false. async_augment_metadata: Add metadata augmentations. An activity is created to indicate progress. Option will be ignored if specified by non-admin or if multiple metadata items are requested. Default is false. augment_count: Number of augmentations to add. Requires asyncAugmentMetadata to be specified. include_markers: Include intro/credits markers in the response include_guids: Include external GUIDs (e.g. TMDB, TVDB) in the response include_chapters: Include chapter data in the response include_external_media: Include external/online media in the response include_extras: Include trailers, behind-the-scenes, and other extras include_related: Include related items in the response include_on_deck: Include On Deck status in the response include_popular_leaves: Include popular episodes in the response include_reviews: Include user reviews in the response include_stations: Include radio station data in the response exclude_elements: Comma-separated list of elements to exclude from the response exclude_fields: Comma-separated list of fields to exclude from the response

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes
check_filesNo
skip_refreshNo
augment_countNo
include_guidsNo
exclude_fieldsNo
include_extrasNo
include_markersNo
include_on_deckNo
include_relatedNo
include_reviewsNo
exclude_elementsNo
include_chaptersNo
include_stationsNo
async_check_filesNo
async_augment_metadataNo
async_refresh_analysisNo
include_external_mediaNo
include_popular_leavesNo
check_file_availabilityNo
async_refresh_local_media_agentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior5/5

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

Although annotations already declare readOnlyHint and idempotentHint, the description adds significant behavioral detail: async options create activity records, async flags override synchronous ones, checkFiles implies checkFileAvailability, and asyncAugmentMetadata is ignored for non-admins or multiple items. This goes well beyond what the annotations convey.

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 structure is logical: a one-line summary, the endpoint, then a compact parameter block. The repeated phrase 'An activity is created to indicate progress' appears three times, which is mildly redundant, but overall the length is justified by the 21 parameters and the lack of schema descriptions.

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

Completeness4/5

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

Given the 21-parameter surface area and zero schema descriptions, the tool is largely self-sufficient for invocation: the required ids are identified and all optional flags are documented with behavior and defaults. It is slightly weaker on high-level guidance, such as what base metadata is always returned versus what must be requested via flags.

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?

With 0% schema description coverage, the description compensates thoroughly by explaining every parameter, including defaults and interdependencies. The only notable gap is that 'ids' is described as a comma-separated list while the schema declares it as an array, and augment_count lacks an explicit value range.

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?

The description opens with a specific verb and resource: 'Get a metadata item' followed by 'GET /library/metadata/{ids}'. This clearly identifies the operation as fetching metadata by ID, though it does not explicitly distinguish itself from nearby siblings like get_library_metadata_by_id_children or get_library_metadata_by_ids_related.

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?

Usage is implied through the name and endpoint: use this tool when you need a metadata item by IDs. However, there is no explicit guidance about when to prefer this over the many related siblings, nor any 'when-not-to-use' or alternative routing.

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

Deploy Server

Other Tools