Skip to main content
Glama

update_file_metadata

Update metadata for an existing LibreTime library file, including track title, artist, album, and genre, by providing the file ID and fields to change.

Instructions

Update metadata for a file already in the LibreTime library (track title, artist, album, genre).

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": {
      "file_id": "<file_id>"
    },
    "name": "update_file_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
genreNoGenre
file_idYesID of the file to update
album_titleNoAlbum title
artist_nameNoArtist name
track_titleNoTrack title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden for a mutation tool. It does not state whether this is a partial merge or a full replacement of existing metadata, whether omitted fields are cleared, what permissions are required, or whether the change is reversible — all material for an agent deciding to write.

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?

A single front-loaded sentence with the verb and resource first, followed by the concrete field list. No filler or restatement of the tool name, though the parenthetical could be trimmed given the schema already lists the fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter write operation with no annotations and no output schema, the definition is thin: it never says what the response contains, whether only the required file_id plus supplied fields are applied, or how errors are surfaced. Too much of the mutation contract is left for the agent to infer.

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 the baseline is 3. The description's field list lightly helps by mapping natural-language names ("album", "artist") onto the schema keys album_title and artist_name, but adds no format, length, or validation detail beyond the 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 gives a specific verb and resource ("Update metadata for a file") and enumerates the affected fields (track title, artist, album, genre). It clearly separates this tool from siblings like delete_file, upload_file, and search_files without needing to name them.

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 phrase "for a file already in the LibreTime library" establishes a precondition (the file must exist) and implies this is an edit-in-place rather than an import. There is no explicit guidance on when to prefer this over upload_file or delete_file, and no statement about what happens if file_id is unknown.

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