Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

query_table

Read-only

Read paginated Tdarr UI tables with server-side filtering, sorting, and paging; inspect transcode queues, successes, errors, or health-check results without modifying data.

Instructions

Read one of the paginated tables behind the Tdarr UI (POST /api/v2/client/{client_type}) with server-side filtering, sorting and paging. Read-only: opts only accepts table, property, fileMedium, detail, dbID, csv; the bulk-write options of this endpoint (setAll, updatedObj, applyToAllStaged, verdict) are rejected unless the server is started with TDARR_ALLOW_DESTRUCTIVE=true. The valid client_type and opts.table values are the ones the Tdarr UI uses for that page. Prefer search_files for plain file lookups.

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": {
      "client_type": "<client_type>"
    },
    "name": "query_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
optsNoEndpoint-specific options, e.g. { table: 'table1', dbID: '<libraryId>' }. 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.
sortsNoSort order, e.g. [{ id: 'file_size', desc: true }]
startNoRow offset (default 0)
filtersNoColumn filters, e.g. [{ id: 'file', value: 'Movie' }]
page_sizeNoRows per page (default 25)
client_typeYesThe client endpoint segment, i.e. the UI table being queried

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / filters / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / opts / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / page_size / maximum
      Added value: +9007199254740991
    • removedInput schema / properties / sorts / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / start / maximum
      Added value: +9007199254740991
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past readOnlyHint=true: it enumerates the only accepted opts keys (table, property, fileMedium, detail, dbID, csv), discloses that bulk-write options (setAll, updatedObj, applyToAllStaged, verdict) are rejected unless TDARR_ALLOW_DESTRUCTIVE=true, and reveals the POST endpoint behind a read operation. This is exactly the context annotations cannot convey.

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 tight sentences, front-loaded with the operation and endpoint, then the safety constraint, then the alternative. Dense but every clause carries information; slightly heavy nesting of parenthetical endpoint path and option lists.

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?

Covers the risky parts (mutation-guard behavior, allowlisted options) for a 6-parameter, nested-object tool with no output schema. It says nothing about the shape of the returned rows or how paging metadata comes back, which is the remaining gap an agent would want when no output schema exists.

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 the baseline is 3; the description adds real meaning by restricting opts to a whitelist of five keys and flagging that the write-oriented keys will be rejected. It does not explain fileMedium/detail/csv value semantics, leaving some endpoint-specific behavior to the UI convention it references.

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 ('Read one of the paginated tables behind the Tdarr UI'), names the underlying endpoint (POST /api/v2/client/{client_type}), and lists the capabilities (server-side filtering, sorting, paging). It also distinguishes itself from search_files, so an agent can tell the two apart without opening schemas.

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?

Gives an explicit routing rule: 'Prefer search_files for plain file lookups,' plus the constraint that client_type and opts.table must be values the UI itself uses for that page. Lacks a stated when-not case for query_table beyond that single alternative, so it stops short of full 5 guidance.

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