Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

requeue_files

Idempotent

Requeues every file in a Tdarr library for transcoding or health checking, moving selected status-table entries back to the processing queue.

Instructions

Requeue every file of a library for transcoding or health checking (POST /api/v2/set-all-status). Tdarr's file tables are table1 transcode queue, table2 transcode success, table3 transcode error, table4 health check queue, table5 health check success, table6 health check error — requeueing from table2 back to the transcode queue re-runs the whole library.

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": {
      "library_id": "<library_id>",
      "table": "<table>",
      "mode": "<mode>",
      "process_status": "<process_status>"
    },
    "name": "requeue_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesRequeue mode as used by the Tdarr UI, e.g. 'transcode' or 'health'
tableYesSource table, e.g. 'table2' for previously transcoded files
library_idYesLibrary ID (dbID), from list_libraries
process_statusYesStatus to set on the files, e.g. 'Queued' to put them back in the queue

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so the description's job is to add consequence detail — and it does, warning that requeueing table2 files re-runs the entire library. The six-table state model explains where files move, which the annotations cannot. It stops short of stating cost, concurrency impact, or whether existing queue/error rows are cleared, which keeps it from a 5.

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?

Front-loaded with the action and scope, and the endpoint is tucked into parentheses rather than leading. The second sentence is a dense em-dash list but every element (table1–table6) carries real meaning for parameter selection; no filler.

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?

All four parameters are required and the description supplies the domain model needed to pick table, mode, and process_status sensibly, which is the main risk for this mutation. Missing are return/confirmation behavior and side effects on existing rows — meaningful for a bulk mutation with no output schema, but not disqualifying given the strong table explanation.

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, but the description earns more: it documents what the otherwise opaque table values mean (table1 transcode queue through table6 health check error) and explains the causal effect of moving files from table2 back to the queue. mode and process_status are still only illustrated by the schema's examples rather than by the description.

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 scope: 'Requeue every file of a library for transcoding or health checking', and even names the backing endpoint POST /api/v2/set-all-status. It is clearly a library-wide bulk operation, which implicitly separates it from per-file tools like get_file or search_files, though it never names a sibling alternative.

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?

Usage is conveyed indirectly through the table model: requeueing from table2 back to the transcode queue re-runs the whole library. That tells an agent the effect but not when to prefer this over bulk_update_files or search_files, and there are no explicit exclusions or preconditions (e.g. don't call on an actively running library).

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