Skip to main content
Glama

update_metadata_from_json

Update a Plex media item's metadata by supplying a JSON payload and rating key. Apply edits to titles, descriptions, artwork, and more.

Instructions

Update metadata from a JSON payload (requires PLEX_ENABLE_MUTATIVE_OPS=true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
metadataYesMetadata payload to apply
ratingKeyYesThe rating key of the media item to update
setPosterFromUrlNoAttempt to set poster from metadata.images.posters[0].url
Behavior3/5

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

The description adds the operational requirement of the PLEX_ENABLE_MUTATIVE_OPS environment variable, which is useful beyond the annotations. However, it does not clarify whether the metadata update merges with existing fields or replaces them, nor does it describe failure behavior. Since annotations already indicate mutation, this is a moderate addition.

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 a single well-structured sentence that conveys the core purpose and a critical requirement without any filler. Every word adds value.

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?

The tool has a nested metadata object, a mutative action, and no output schema. The description provides the key context (purpose and permission flag), and the schema covers parameter details. It is mostly complete but would benefit from stating the return value or update semantics (merge vs replace), so it is not a perfect 5.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides descriptions for all three parameters with 100% coverage, so the description adds no additional parameter-specific meaning. The baseline of 3 is appropriate because the schema already does the heavy lifting.

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 uses a specific verb ('Update') with a clear resource ('metadata from a JSON payload'). The qualifier 'from a JSON payload' distinguishes this from sibling tool 'update_metadata', making its unique purpose immediately evident.

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

Usage Guidelines4/5

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

The description provides an explicit prerequisite ('requires PLEX_ENABLE_MUTATIVE_OPS=true') and implies the use case (applying a JSON payload). However, it does not explicitly contrast with the sibling 'update_metadata' or state when not to use it, leaving some room for ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/niavasha/plex-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server