Skip to main content
Glama

create_library_collections

Idempotent

Create new Plex library collections in a specified section, with optional URI support for smart collections.

Instructions

Create collection.

POST /library/collections

Args: section_id: The section where this collection will be created uri: The URI for processing the smart collection. Required for a smart collection

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriNo
section_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already indicate a write operation (readOnlyHint false), idempotent (idempotentHint true), and non-destructive (destructiveHint false). The description adds context by noting the URI is for smart collections, implying behavior about collection type, but does not disclose what happens on success, failure, or side effects. Since annotations cover the safety profile, the description adds some value but lacks rich behavioral detail.

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 concise and well-structured, leading with the purpose and then listing parameters with explanations. The inclusion of the HTTP method and endpoint is useful. It is front-loaded and efficient, with no filler content.

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?

Given that the tool has an output schema (not shown), the description does not need to explain return values. However, it lacks context about what a 'collection' is, prerequisites like authentication, or the relationship between section_id and uri. It also does not clarify whether section_id is always required (schema says optional). The description covers the basic parameters but is incomplete for a creation tool with multiple variants (smart vs. regular collections).

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 coverage is 0%, so the description must compensate. It does so effectively: section_id is described as 'The section where this collection will be created', and uri is described as 'The URI for processing the smart collection. Required for a smart collection', clarifying its purpose and conditional necessity. This goes beyond the bare parameter names and adds meaningful semantics.

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 clear verb and resource: 'Create collection' with the specific endpoint POST /library/collections. It is unambiguous about the operation, though it could better distinguish from other collection-related tools (e.g., update/delete). The resource is explicit enough for an agent to identify the action.

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 provides minimal guidance on when to use this tool versus alternatives. It does not mention that this is for creating new collections, while update and delete tools handle modifications and removals. The only hint is the mention of 'smart collection' for the uri parameter, which is more about parameter usage than overall tool selection. No exclusions or conditions for using this tool are given.

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