Skip to main content
Glama

create_library_optimize

Idempotent

Trigger Plex media library optimization to refresh metadata and improve server performance.

Instructions

Optimize Library.

POST /library/optimize

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

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?

Annotations already indicate this is non-read-only, idempotent, and non-destructive, and the description adds only the HTTP method and path without any behavioral context. It does not explain side effects, prerequisites, or what the optimization does to library data, so the description contributes little beyond what the annotations provide.

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

Conciseness2/5

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

The description is a single under-specified sentence that does not earn its place, rather than being effectively concise. It provides the endpoint but omits essential context, making it closer to a placeholder than a well-structured tool definition.

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?

Even though the tool has no parameters and an output schema exists, the description leaves out what optimization is, who should call it, and how it relates to the many similar siblings. An agent would be hard-pressed to safely or correctly invoke this based on the description alone.

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 zero parameters)Skip, so there is nothing for the description to explain. The baseline for a 0-parameter tool is 4, and the description, while terse, does not need to clarify any argument semantics.

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 is just 'Optimize Library.' which is a verb+resource but essentially repeats the tool name without any elaboration. It does not explain what optimizing entails or how this action differs from sibling tools like create_library_sections_by_section_id_optimize or get_library_sections_by_section_id_optimize, leaving the agent to infer meaning from the endpoint path alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is zero guidance on when to invoke this tool versus the many sibling tools containing 'optimize' or related library operations. No context, exclusions, or conditions are provided, so an agent has no basis for choosing this over alternatives.

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