Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

rescan_file

Idempotent

Refresh Tdarr's ffProbe data and queue status for a single file after changing it on disk outside Tdarr. Use it to sync file metadata and job state.

Instructions

Rescan a single file so Tdarr refreshes its ffProbe data and queue status (POST /api/v2/rescan-file). Use it after changing a file on disk outside Tdarr.

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>",
      "library_id": "<library_id>"
    },
    "name": "rescan_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesFile ID (full path), from search_files
library_idYesLibrary ID (dbID) the file belongs to

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.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine value by naming what is refreshed (ffProbe data and queue status) and the underlying endpoint, but says nothing about cost, whether a scan job is queued, or how long the refresh takes to be observable.

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 short sentences, zero waste: the effect is front-loaded and the usage condition follows immediately. The endpoint reference is compact and informative rather than padding.

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

Completeness5/5

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

With only two fully documented required parameters, no output schema, and annotations covering the mutation/safety profile, the description carries everything an agent needs to decide to call it and what will happen as a result.

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%, and the schema already explains that file_id is a full path sourced from search_files and library_id is the owning dbID. The description adds no parameter detail beyond that, so the baseline 3 applies.

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 ('Rescan a single file') and names the concrete effect ('refreshes its ffProbe data and queue status'), which an agent can distinguish from passive lookups like get_file. It stops short of differentiating itself from the similarly named sibling scan_file_details, so a reader still has to guess between those two.

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?

It supplies a clear triggering condition: 'Use it after changing a file on disk outside Tdarr.' That tells the agent when the tool is warranted, but gives no exclusions, no mention of when a plain read (get_file) is sufficient, and no hint about the alternative scan_file_details.

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