Skip to main content
Glama

get_library_sections_by_section_id_all

Read-onlyIdempotent

Retrieve all items from a Plex library section by section ID, with optional filters for genre, year, studio, and more to tailor results.

Instructions

Get items in the section.

GET /library/sections/{sectionId}/all

Args: section_id: The id of the section include_meta: Adds the Meta object to the response include_guids: Adds the Guid object to the response include_collections: Include collection items in results include_external_media: Include external or online media include_advanced: Include advanced settings check_files: Verify file existence include_related: Include related items include_extras: Include trailers, behind-the-scenes, etc. include_popular_leaves: Include popular episodes include_concerts: Include concert items include_on_deck: Include On Deck status include_chapters: Include chapter markers include_preferences: Include user preferences include_bandwidths: Include bandwidth info include_loudness_ramps: Include loudness ramp data include_stations: Include radio station data include_external_ids: Include external GUIDs include_reviews: Include user reviews include_credits: Include full credits include_art: Force inclusion of artwork fields include_thumb: Force inclusion of thumbnail fields include_banner: Force inclusion of banner fields include_theme: Force inclusion of theme fields include_fields: Whitelist of fields to return exclude_fields: Blacklist of fields to omit async_augment_metadata: Async metadata augmentation async_refresh_local_media_agent: Async local media agent refresh nocache: Bypass cache skip_refresh: Skip synchronous refresh exclude_elements: Comma-separated list of elements to exclude from the response filters: General filtering expression. unwatched: Filter to unwatched only (1 = true). genre: Filter by genre. studio: Filter by studio. content_rating: Filter by content rating. resolution: Filter by resolution. year: Filter by year. first_character: Filter by first character of title.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNo
genreNo
studioNo
filtersNo
nocacheNo
unwatchedNo
resolutionNo
section_idYes
check_filesNo
include_artNo
include_metaNo
skip_refreshNo
include_guidsNo
include_themeNo
include_thumbNo
content_ratingNo
exclude_fieldsNo
include_bannerNo
include_extrasNo
include_fieldsNo
first_characterNo
include_creditsNo
include_on_deckNo
include_relatedNo
include_reviewsNo
exclude_elementsNo
include_advancedNo
include_chaptersNo
include_concertsNo
include_stationsNo
include_bandwidthsNo
include_collectionsNo
include_preferencesNo
include_external_idsNo
async_augment_metadataNo
include_external_mediaNo
include_loudness_rampsNo
include_popular_leavesNo
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safe read-only profile is covered. The description adds the endpoint path and a long list of optional include/filter parameters, but does not disclose behavioral traits such as response size, pagination, caching effects, or that an 'all' query may return a very large payload. It is consistent with annotations and adds some but not rich behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the one-sentence purpose and the endpoint, followed by a structured Args block. The 39-line parameter list is necessary given the parameter count and lack of schema descriptions, but it is long and repetitive, and the formatting is minimal rather than genuinely concise. It is functional but not a model of compactness.

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?

For a 39-parameter endpoint, the description is reasonably complete: it states the operation and explains every parameter. However, it provides no guidance on typical use, default behavior, or how this endpoint relates to the many sibling section endpoints. The presence of an output schema removes the need to describe return values, but the missing selection guidance leaves the context incomplete for an autonomous agent.

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 description coverage is 0%, so the description carries the full burden for 39 parameters. It lists every parameter with a brief semantic hint, such as 'include_meta: Adds the Meta object to the response' and 'unwatched: Filter to unwatched only (1 = true)'. This adds real meaning beyond the bare schema titles, though many entries simply restate 'include X' and several are vague (e.g., 'filters: General filtering expression.').

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 states a concrete action and resource: 'Get items in the section' followed by the REST path 'GET /library/sections/{sectionId}/all'. This clearly identifies the primary operation. It does not explicitly differentiate from closely related siblings like get_library_sections_by_section_id_movies, _shows, or _all_leaves, so it misses the full sibling-distinguishing clarity.

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 guidance about when to use this tool instead of the many sibling get_library_sections_by_section_id_* endpoints. The name and endpoint imply it returns 'all' items, but the description never states that it is the general/all-items endpoint or mentions alternatives for filtered or type-specific queries. Agents are left to infer usage from the URL.

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