Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

find_duplicates

Starts Tdarr duplicate detection asynchronously, supporting metadata comparison or sha256 content hashing to identify duplicate media files in libraries.

Instructions

Start Tdarr's duplicate detection (POST /api/v2/find-duplicates). 'metadata' compares stream metadata and is fast; 'sha256' hashes file content and is accurate but slow — with sha256, hash_amount controls how much of each file is read. Runs asynchronously; stop it with stop_find_duplicates.

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": {
      "threshold": "<threshold>",
      "count": "<count>"
    },
    "name": "find_duplicates"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYesMinimum number of matching files to report a group
thresholdYesSimilarity threshold above which two files count as duplicates
hash_amountNoHow much of each file to hash, for detection_method 'sha256'
detection_methodNoDetection method (default is the server's own default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / count / maximum
      Added value: +9007199254740991
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false; the description adds the crucial fact that the operation is asynchronous and must be stopped via another tool, plus the performance tradeoff of each mode. It leaves out whether a new run replaces in-progress results or how progress is observed, which is the remaining gap.

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?

Three sentences, front-loaded with the operation and endpoint before the tradeoff detail. Efficient, though the method comparison partially repeats enum descriptions already in the schema.

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?

No output schema exists, so the description must carry the return story, and it doesn't say what is returned or where duplicate results are later retrieved. Async behavior and the stop tool are covered, which is the important part for calling it correctly, but result handling is undefined.

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 coverage is 100%, so baseline is 3. The description adds the meaningful relationship that hash_amount only matters under detection_method 'sha256', but says nothing about threshold or count semantics beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Start Tdarr's duplicate detection') and pins it to the exact endpoint. It immediately distinguishes itself from the sibling stop_find_duplicates by naming it as the counterpart.

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?

Clearly tells the agent when to pick each mode: 'metadata' is fast, 'sha256' is accurate but slow, and it correctly routes to stop_find_duplicates for halting. It doesn't state when duplication scanning is inappropriate relative to other library tools, but the method selection guidance is concrete.

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