Skip to main content
Glama

create_library_metadata_by_ids_by_element

Idempotent

Set artwork, theme, or other media element for Plex library items by specifying comma-separated IDs and the element type, with an optional image URL or binary upload.

Instructions

Set an item's artwork, theme, etc.

POST /library/metadata/{ids}/{element}

Args: ids: Comma-separated list of IDs element: The type of artwork element (e.g., art, poster, thumb) url: The url of the new asset. If not provided, the binary of the asset must be provided in the post body.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYes
urlNo
elementYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish this is a writable, idempotent, non-destructive operation. The description adds valuable behavior by explaining that if no URL is provided, the asset binary must be sent in the POST body, and it clarifies that `element` represents an artwork type.

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 short and front-loaded with the purpose, then uses an Args block to add parameter semantics efficiently. The endpoint line is somewhat redundant with the tool name, but there is no filler or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter write endpoint with an output schema and annotations already covering idempotency/safety, the description covers the route, all parameter meanings, and the critical URL-or-binary-body behavior. It does not define the exact binary format or effects on existing artwork, but the essential calling context is present.

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 for parameters. It documents all three: `ids` as comma-separated, `element` with concrete examples, and `url` as optional with a precise binary-body fallback. Valid values for `element` remain open-ended.

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 concrete action ('Set an item's artwork, theme') and identifies the target resource via the route and name. It is clear but does not explicitly differentiate this from sibling tools that also manipulate library artwork/metadata, so it stops short of a 5.

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 when-to-use guidance, exclusions, or mention of alternatives. The endpoint and argument list imply usage, but the agent is not told when to choose this tool over the many sibling library metadata tools such as update_library_metadata_by_ids_by_element.

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