Skip to main content
Glama

get_library_sections_by_section_id_all_leaves

Read-onlyIdempotent

Retrieve all media items in a Plex library section by supplying its section ID.

Instructions

Set section leaves.

GET /library/sections/{sectionId}/allLeaves

Args: section_id: Section identifier

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
section_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.1/5.0
Behavior2/5

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

The annotations already provide the read-only, idempotent, non-destructive safety profile, but the description adds no behavioral context beyond the raw path. The phrase 'Set section leaves' is at best unhelpful and at worst implies a write operation for what is annotated as read-only.

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 text is extremely short and the endpoint line is useful, but the opening phrase is confusing and arguably wasted. Brevity is achieved through omission rather than efficient information delivery.

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

Completeness2/5

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

With a single parameter and output schema, the bar is low, but the description still lacks the core concept of 'all leaves' and any selection context. It is not complete enough to choose this endpoint reliably among dozens of similar library section endpoints.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description should fully explain section_id. It only says 'Section identifier', which duplicates the schema title and does not clarify that it is the library section whose leaf items should be fetched or how to obtain it.

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

Purpose2/5

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

The description contains only 'Set section leaves.' plus the raw endpoint path. 'Set' is ambiguous (noun or write action) and the description never states that this GET returns all leaf items in a library section, nor does it differentiate from siblings such as get_library_sections_by_section_id_all or get_library_metadata_by_ids_all_leaves.

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?

No guidance is given about when to call this tool versus the many other section/library leaf tools. There is no mention of prerequisites, filters, or alternatives, so an agent cannot decide between this and get_library_sections_by_section_id_all from the description.

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