Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

get_resource_history

Read-only

Retrieves Tdarr server resource history—CPU, memory, and heap usage over time—to monitor performance trends and diagnose load issues.

Instructions

Get the Tdarr Server resource history (POST /api/v2/stats/get-res-hist) — CPU percentage, memory and heap usage over time.

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_resource_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeframeNoTimeframe to report over, as used by the Tdarr UI

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

B3.2/5.0
Behavior3/5

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

The readOnlyHint=true annotation already establishes this is a safe read, so the bar is lower. Beyond that, the description adds useful context — the underlying endpoint and the metric set returned — but says nothing about retention windows, default timeframe behavior, or result granularity.

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?

A single front-loaded sentence with the metric list appended; nothing is wasted. The raw endpoint path is mildly extraneous but plausibly useful for debugging, so it does not significantly hurt.

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?

For a simple one-optional-param read tool with no output schema, the definition covers what the tool returns at a high level. It leaves gaps on default timeframe and the shape/granularity of the history series, which an agent would need in order to invoke it confidently.

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% for the single optional 'timeframe' parameter, so the baseline is 3. The description's 'over time' phrasing hints at the parameter's role but adds no format details, valid values, or default beyond what the schema states.

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

Purpose4/5

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

The description uses a specific verb and resource ('Get the Tdarr Server resource history') and names the exact metrics returned — CPU percentage, memory, and heap usage over time. It is clear what the tool does, though it does not distinguish itself from sibling tools like get_resource_stats or get_worker_history.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to use this tool versus the clearly related sibling get_resource_stats (current) or get_worker_history (per-worker). The phrase 'over time' implies historical series, but no alternatives or selection criteria are stated.

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