Skip to main content
Glama

update_library_sections_by_section_id_all

Idempotent

Apply bulk metadata edits to filtered items in a Plex library section by setting field values, locking fields, or updating tags and artist/album associations.

Instructions

Set the fields of the filtered items.

PUT /library/sections/{sectionId}/all

Args: section_id: The id of the section type: The media type to filter by filters: The filters to apply to determine which items should be modified field_value: Set the specified field to a new value field_locked: Set the specified field to locked (or unlocked if set to 0) title_value: This field is treated specially by albums or artists and may be used for implicit reparenting. artist_title_value: Reparents set of Tracks or Albums - used with album.title.* in the case of tracks artist_title_id: Reparents set of Tracks or Albums - used with album.title.* in the case of tracks album_title_value: Reparents set of Tracks - Must be used in conjunction with artist.title.value or id album_title_id: Reparents set of Tracks - Must be used in conjunction with artist.title.value or id tagtype_idx_tag_tag: Creates tag and associates it with each item in the set. - [idx] links this and the next parameters together tagtype_idx_tagging_object: Here object may be text/thumb/art/theme - Optionally used in conjunction with tag.tag, to update association info across the set. tagtype_tag_tag: Remove comma separated tags from the set of items tagtype_tag: Remove associations of this type (e.g. genre) from the set of items

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo
filtersNo
section_idYes
field_valueNo
tagtype_tagNo
title_valueNo
field_lockedNo
album_title_idNo
artist_title_idNo
tagtype_tag_tagNo
album_title_valueNo
artist_title_valueNo
tagtype_idx_tag_tagNo
tagtype_idx_tagging_objectNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

The description adds meaningful behavioral context beyond the annotations, including implicit reparenting for title/artist/album fields, tag creation, tag removal, and required parameter conjunctions. This is especially valuable because readOnlyHint=false alone does not convey these side effects.

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 long but earns its length by covering every parameter once and formatting them as a list, with the route and a one-line summary first. It is structured and scannable for a high-complexity tool, though it could be tighter and more example-driven.

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 14-parameter bulk mutation tool, the description is moderately complete: it documents every parameter and several dependencies, and an output schema exists, so return details are not its job. But it lacks examples, does not explain filter or field-value syntax, and omits guidance on the scope/scale of changes, which an agent would need to safely invoke it.

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, and it does define all 14 parameters with some behavioral meaning. However, a few definitions remain ambiguous, such as what 'field_value' actually targets and how the 'idx' parameter linking mechanism works in practice.

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 opening line, 'Set the fields of the filtered items,' names a specific action and target resource, and the PUT route ties it to bulk section-item updates. It is clear enough about the core operation, though 'fields' is somewhat unspecific and it does not explicitly contrast with sibling bulk-update tools like update_library_metadata_by_ids.

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?

The description implies use for updating a filtered set of items, but gives no explicit guidance on when to choose this tool over alternatives such as update_library_sections_by_section_id or update_library_metadata_by_ids. There are no stated preconditions, exclusions, or scenario examples.

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