Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

create_sample

Creates a 30-second sample of a specified file and returns its path, so you can test plugin stacks or flows on a short clip before processing a full library.

Instructions

Create a 30 second sample of a file (POST /api/v2/create-sample) and return the path of the sample. Useful for testing a plugin stack or flow on a short clip before running it on a 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": {
      "file_path": "<file_path>"
    },
    "name": "create_sample"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesFull file path, as Tdarr Server sees it

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.3/5.0
Behavior4/5

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

Beyond the annotations declaring a non-read-only, non-destructive operation, the description discloses the fixed 30-second sample length and that the call returns the sample's path. Secondary behaviors such as where the sample is stored, its naming, and whether processing is synchronous remain unspecified.

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 compact sentences front-load the action, duration, and returned result, then state the practical use case. The endpoint parenthetical is brief, and there is no filler or redundant explanation.

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?

For a simple operation with one required parameter, the description supplies the output duration, return value, and intended workflow, while the schema and annotations cover the input and safety profile. Although no output schema exists, explicitly stating that a sample path is returned gives the agent enough information to select and invoke the tool correctly.

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?

The description implies that the file is the source to be sampled, but adds no path syntax or validation details. Since schema coverage is 100% and file_path already explains that it must be the full path as seen by Tdarr Server, the schema appropriately carries most of the parameter semantics.

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?

The description gives a specific verb, resource, fixed duration, and result: create a 30-second sample of a file and return its path. The short-clip testing purpose further distinguishes it from backup and general file-management siblings.

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 provides a concrete usage scenario: testing a plugin stack or flow on a short clip before processing a whole library. It does not provide when-not guidance or name an alternative for full-library processing, but the intended context is clear.

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