Skip to main content
Glama

upload_file

Upload an audio file to the LibreTime media library by URL or local path, with optional prefilled track, artist, album, and genre metadata.

Instructions

Upload an audio file to the LibreTime media library. Provide a URL to fetch the file from, or a local file path when running in stdio mode. When neither is given, opens a file picker. Optionally pre-fill metadata such as track title, artist, album, and genre.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublicly accessible URL of the audio file to upload
genreNoGenre
libraryNoTrack type / library ID
file_pathNoAbsolute path to a local audio file — use when running stdio mode
album_titleNoAlbum title
artist_nameNoArtist name
track_titleNoTrack title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the three source-resolution paths and the picker fallback, which is real behavioral content. It says nothing about authentication or permission needs, supported audio formats, size limits, duplicate handling, or whether the file is transcoded, which are significant unknowns for a write operation.

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?

Three short sentences, front-loaded with the action, then the input mechanism, then the optional metadata. No redundant phrasing and nothing restates the tool name without adding information.

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?

Covers the input side well for a 7-parameter, zero-required tool, but with no annotations and no output schema the description should say more about the result and side effects. An agent cannot tell whether the upload returns a track identifier, whether it lands in a specific library by default, or whether scheduling is a separate step via schedule_file.

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 the baseline is 3. The description earns above that by clarifying that track title, artist, album, and genre are optional metadata prefill rather than requirements, and by explaining the url-versus-file_path selection logic that the schema documents only in isolation.

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: 'Upload an audio file to the LibreTime media library.' That clearly separates it from delete_file, update_file_metadata, and search_files. It stops short of naming a sibling or stating an exclusion, so it is clear but not maximally differentiated.

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?

Gives concrete selection rules among the source inputs: URL to fetch from, local file path in stdio mode, or file picker when neither is supplied. What it lacks is guidance on when to upload at all versus other workflows (for example, whether uploading schedules the file or a separate call is needed).

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