Skip to main content
Glama

create_library_sections_all

Idempotent

Add a new media library section to Plex by specifying name, type, scanner, agent, and disk locations. Configure metadata preferences and language for the section.

Instructions

Add a library section.

POST /library/sections/all

Args: name: The name of the new section type: The type of library section scanner: The scanner this section should use agent: The agent this section should use for metadata metadata_agent_provider_group_id: The agent group id for this section language: The language of this section locations: The locations on disk to add to this section prefs: The preferences for this section relative: If set, paths are relative to Media Upload path import_fromi_tunes: If set, import media from iTunes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
typeNo
agentNo
prefsNo
scannerNo
languageNo
relativeNo
locationsNo
import_fromi_tunesNo
metadata_agent_provider_group_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior2/5

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

Annotations already indicate that this is a non-read-only, idempotent, non-destructive operation. The description adds no behavioral context beyond that: no mention of required permissions, side effects, failure behavior, or implications of creating a section. It does not contradict 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.

Conciseness4/5

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

The description is front-loaded with a one-sentence summary followed by a compact args list. It avoids filler, and the arg list earns its length because the schema provides no descriptions. Minor formatting and typo issues such as import_fromi_tunes keep it from being perfect.

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?

This is a complex creation tool with ten parameters, no schema descriptions, and no enums. The shallow parameter labels are insufficient for reliably constructing a valid call: requiredness is unclear despite the schema marking everything optional, and there is no guidance on valid type values or how to obtain scanner/agent/group identifiers. The output schema covers return values but not the missing input context.

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 schema has zero descriptions, so the description's args list adds meaningful plain-language meaning for all ten parameters, including non-obvious ones like relative and import_fromi_tunes. However, it still leaves value domains unresolved—integer type codes, scanner/agent identifiers, and the prefs object shape are not explained.

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 opens with a clear, specific statement—'Add a library section'—and gives the endpoint. It accurately conveys the verb and resource, but it does not explicitly distinguish this tool from sibling section-management tools like create_library_sections_refresh or update_library_sections_by_section_id.

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 on when to use this tool versus alternatives, no preconditions, and no exclusions. The wording only implies use when a section needs to be created, but does not help an agent decide between this and related create/update/delete section operations.

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