Skip to main content
Glama

create_library_file

Idempotent

Add a media file to your Plex library by ingesting it from a URL or virtual path, with optional hash computation and storage of non-matching media.

Instructions

Ingest a transient item.

POST /library/file

Args: url: The file of the file to ingest. virtual_file_path: A virtual path to use when the url is opaque. compute_hashes: Whether or not to compute Plex and OpenSubtitle hashes for the file. Defaults to 0. ingest_non_matches: Whether or not non matching media should be stored. Defaults to 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNo
compute_hashesNo
virtual_file_pathNo
ingest_non_matchesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already provide readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds some context by calling the item 'transient' and explaining hash computation and non-match storage, but it does not clarify what 'transient' means or what the actual side effects are beyond ingestion.

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, front-loaded with the main action and endpoint, and the Args list is dense and useful. It loses a point for minor grammar issues and because 'POST /library/file' repeats information that the endpoint-oriented name already suggests, though it still earns its place.

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?

With no required parameters and an output schema present, the description does not need to document return values. However, it leaves 'transient item' undefined and does not explain how this operation relates to other library file ingestion workflows, which is a meaningful gap for correct invocation.

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, and it does describe all four parameters with defaults. The url line is garbled ('The file of the file to ingest'), but virtual_file_path, compute_hashes, and ingest_non_matches are meaningfully explained beyond the raw schema.

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 specific verb+resource ('Ingest a transient item') and gives the concrete endpoint POST /library/file, which differentiates it from library siblings like create_library_collections or create_library_metadata_by_ids. However, the phrase 'transient item' is jargon and not fully explained, 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 guidance on when to use this tool versus alternative library creation/ingestion tools. It does not name any sibling or state exclusions, so an agent must infer appropriateness from the endpoint and parameter names alone.

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