Skip to main content
Glama

export_library

Export a full Plex library as JSON: write it to ./exports over stdio, or return an MCP resource link for resources/read over HTTP.

Instructions

Export a full library as JSON. Over stdio it is written to a file under ./exports; over HTTP it is returned as an MCP resource link to read with resources/read

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "libraryKey": "<libraryKey>"
    },
    "name": "export_library"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoMedia type (movie, show, season, episode, artist, album, track)
pageSizeNoItems per page for export (default: 500)
libraryKeyYesLibrary section key
outputPathNoOptional relative path under ./exports (default: library_{key}_{timestamp}.json). stdio only; ignored over HTTP

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.9.3
    • changedInput schema / properties / outputPath / description
      Previous value: -"Optional relative path under ./exports (default: library_{key}_{timestamp}.json)"New value: +"Optional relative path under ./exports (default: library_{key}_{timestamp}.json). stdio only; ignored over HTTP"
  2. Changed2 schema fields changedv1.9.0
    • changedInput schema / properties / type / description
      Previous value: -"Media type (movie, show, episode, artist, album, track)"New value: +"Media type (movie, show, season, episode, artist, album, track)"
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "movie",
      -  "show",
      -  "episode",
      -  "artist",
      -  "album",
      -  "track"
      -]New value: +[
      +  "movie",
      +  "show",
      +  "season",
      +  "episode",
      +  "artist",
      +  "album",
      +  "track"
      +]
  3. Addedv1.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and openWorldHint=true but say nothing about where output goes. The description supplies that critical behavior: file under ./exports over stdio, or an MCP resource link readable via resources/read over HTTP. It stops short of covering permissions or export size/limits.

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?

Two tight sentences, front-loaded with the purpose, then the transport-specific delivery behavior. No filler or redundant restatement of the schema.

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?

With no output schema, the description carries the return-behavior burden and does so for both transports, which is the main thing an agent needs. It omits what the exported JSON contains and any size or permission constraints, a minor gap for a full-library export.

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?

Schema description coverage is 100%, so all four parameters are already documented in the schema. The description reinforces the outputPath transport caveat (ignored over HTTP) but adds no new meaning to libraryKey, type, or pageSize beyond what the schema states.

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?

States a specific verb and resource ('Export a full library as JSON'), which an agent can distinguish from listing tools such as get_library_items. It does not explicitly name or contrast with any sibling, so differentiation is implicit rather than stated.

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

Usage Guidelines3/5

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

The description clarifies transport-dependent invocation (stdio writes to ./exports, HTTP returns a resource link) but offers no guidance on when to choose export over get_library_items or search_media. Usage must be inferred from the word 'full'.

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