Skip to main content
Glama

update_library_collections_by_collection_id_items

Idempotent

Add media items to a Plex collection by providing the collection ID and the URI of items to include.

Instructions

Add items to a collection.

PUT /library/collections/{collectionId}/items

Args: collection_id: The collection id uri: The URI describing the items to add to this collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNo
collection_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior2/5

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

Annotations already indicate readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description merely restates the mutation ('Add items') without adding behavioral details such as how duplicate items are handled, how the uri is parsed, or any side effects. No extra context is provided beyond the annotations.

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

Conciseness5/5

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

The description is exceptionally concise: a one-line purpose, the HTTP method and path, and the two arguments. Every sentence serves a purpose, and the most important information is front-loaded.

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 essential operation and parameters, and the output schema exists so return values are covered. However, it leaves ambiguity around the 'uri' parameter: whether it accepts a single URI or multiple, what the null default means, and how items are added (append vs replace). These gaps make it incomplete for an agent to call the tool with confidence.

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?

The input schema has 0% description coverage, so the description is the sole source of parameter meaning. It provides a concise explanation for each argument: 'The collection id' and 'The URI describing the items to add to this collection.' While brief, it does add semantic value beyond the bare schema.

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 states a clear verb and resource: 'Add items to a collection.' It also specifies the HTTP method and path. This distinguishes it from sibling tools like update_library_collections_by_collection_id_items_by_item_id and ..._move, which operate on specific items or move them.

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 implies when to use the tool ('Add items to a collection') but does not explicitly mention alternatives or exclusions. It lacks any guidance on when to choose this over other collection-related operations, so the usage context is only implicit.

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