Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

search_files

Read-only

Find files in the Tdarr database by filename substring and size filter, returning path, library, container, size, codecs, and transcode/health status.

Instructions

Search the Tdarr file database by filename substring and file size (POST /api/v2/search-db). Returns one summarized record per match: path, library, container, size, codecs, and transcode/health status.

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": {
      "search": "<search>"
    },
    "name": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchYesSubstring to match against the file path (empty for no filter)
detailedNoReturn the full records, including ffProbe and MediaInfo data
less_than_gbNoOnly files smaller than this (default 10000)
greater_than_gbNoOnly files larger than this (default 0)

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

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuine behavioral context: results are summarized per match (which pairs with the schema's 'detailed' flag) and enumerates the returned fields, though it says nothing about result count limits, ordering, or pagination behavior.

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 sentences, front-loaded with the action and match criteria, followed by the return shape. Nothing is redundant or padded, and the endpoint reference is compact.

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?

For a 4-parameter read-only search with full schema coverage and no output schema, the description covers the action and the shape of returned records adequately. Minor gaps remain around result limits and whether size bounds are inclusive, but nothing critical to correct invocation is missing.

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 all four parameters, including defaults for less_than_gb/greater_than_gb and the meaning of 'detailed', are already documented in the schema. The description only restates the filter dimensions at a high level and adds no syntax, boundary, or default information beyond that baseline.

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 ('Search the Tdarr file database') plus the exact match criteria (filename substring and file size) and the underlying endpoint. The phrase 'Returns one summarized record per match' also separates it from single-record lookup siblings like get_file and from duplicate-oriented tools like find_duplicates.

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 implied by the stated filter criteria, so an agent can infer this is the tool for substring/size-based file lookup. However, there is no explicit when-to-use guidance, no mention of when to prefer get_file or find_duplicates, and no stated prerequisites or result-limit caveats.

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