Skip to main content
Glama

plex_metadata

Manage Plex media metadata through refresh, update, match, analyze, and organize operations to keep library information accurate.

Instructions

Comprehensive metadata management operations for Plex Media Server.

PORTMANTEAU PATTERN RATIONALE: Consolidates 7 metadata lifecycle operations into a single tool to ensure consistent identifier handling and improved discovery of library maintenance tasks.

Return Format

{"success": bool, "operation": str, "data": dict|list, "item_id": str|None, "library_id": str|None}

Examples

await plex_metadata(operation="refresh", library_id="1", force=True) await plex_metadata(operation="refresh_all") await plex_metadata(operation="update", item_id="123", metadata={"title": "New Title"}) await plex_metadata(operation="analyze", library_id="1")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce refresh even if recently updated.
item_idNoID of the target media item.
match_idNoMatch identifier for fix_match operation.
metadataNoMetadata fields to update.
patternsNoOrganization patterns (e.g., naming format).
operationYesThe metadata operation to perform.
library_idNoID of the target library.
media_typeNoType of media for matching.
Behavior3/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, so the tool mutates data but is not destructive. The description adds the return format ('success', 'operation', 'data', etc.) but does not disclose side effects, permission requirements, or how operations behave (e.g., whether refresh forces a full rescan). This is acceptable but not rich.

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 well-structured with a purpose statement, rationale, return format, and examples. It is somewhat lengthy but justified by the tool's complexity (7 operations). The 'PORTMANTEAU PATTERN RATIONALE' adds context but could be trimmed; still, every section serves a purpose.

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?

For a complex tool with 7 operations and 8 parameters, the description provides a return format and examples covering 4 operations but omits fix_match, match, and organize. It does not explain what each operation does beyond its name. Without an output schema, this leaves gaps for understanding all behaviors.

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 100%, so baseline is 3. The description adds value by showing operation-specific combinations via examples (e.g., refresh uses library_id, update uses item_id and metadata), which the schema alone does not convey. This clarifies parameter usage beyond individual field descriptions.

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 clearly states it performs 'Comprehensive metadata management operations for Plex Media Server' and consolidates 7 lifecycle operations. The examples and schema enum further specify concrete actions (refresh, update, analyze, etc.), distinguishing it from siblings like plex_library or plex_media.

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?

Implied usage is clear: for metadata maintenance operations. The description notes 'consistent identifier handling and improved discovery of library maintenance tasks', providing context for when to choose this tool. However, it does not explicitly name alternatives or state when NOT to use it, so it falls short of a 5.

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/sandraschi/plexmcp'

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