Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

get_pie_stats

Read-only

Retrieve Tdarr dashboard pie-chart stats—file counts by transcode and health status, container, codecs, resolution, channels—optionally scoped to one library.

Instructions

Get the pie-chart statistics shown on the Tdarr dashboard (POST /api/v2/stats/get-pies) — file counts by transcode status, health status, container, video and audio codec, resolution and channel layout. Omit library_id for totals across every library.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_pie_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
library_idNoLibrary ID to scope the stats to (default: all libraries)

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?

readOnlyHint=true already tells the agent this is a safe read, so the bar is lower. The description still adds value beyond the annotation by naming the concrete backing endpoint and enumerating the exact breakdown dimensions returned, which lets an agent predict the payload shape for a tool that has no output schema. It doesn't mention refresh/caching behavior or whether the numbers are live versus last-scanned, which keeps it short of a 5.

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 core action and the endpoint, then the enumeration of breakdowns, then the one actionable parameter note. The list is long but each entry is a distinct dimension and nothing is filler.

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 one-optional-parameter, read-only stats tool with no output schema, the description supplies the practical substitute for a return-value spec by listing every category in the pie data plus the default scoping behavior. The only gap is that the shape of each breakdown (labels/counts, ordering) is not stated, which is minor here.

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% and the schema's own description ("Library ID to scope the stats to (default: all libraries)") already carries the default behavior. The description's "Omit library_id for totals across every library" restates that same default rather than adding format, valid-ID, or error semantics. Baseline 3 is appropriate since the schema does the heavy lifting.

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 ("Get the pie-chart statistics shown on the Tdarr dashboard") and then enumerates exactly what those statistics cover — file counts by transcode status, health status, container, video/audio codec, resolution, channel layout. The underlying endpoint (POST /api/v2/stats/get-pies) pins it down further, so an agent can distinguish it from the other stats siblings without inspecting any schema.

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?

The final sentence gives real scoping guidance for the one parameter ("Omit library_id for totals across every library"), which is usable when-to guidance. However, there is no explicit routing guidance versus alternatives such as get_performance_stats or get_stream_stats — the reader must infer from the enumerated breakdowns that this is the aggregate/dashboard view rather than per-item stats.

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