Skip to main content
Glama
Tdarr MCP Server

Tdarr MCP Server

by OrellBuehler

toggle_schedule

Turn a contiguous range of hour blocks in a library's weekly schedule on or off to control when Tdarr is allowed to process that library.

Instructions

Turn a contiguous range of hour blocks in a library's weekly schedule on or off (POST /api/v2/toggle-schedule). The schedule controls when Tdarr is allowed to process the 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": {
      "library_id": "<library_id>",
      "start": "<start>",
      "end": "<end>",
      "type": "<type>"
    },
    "name": "toggle_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesIndex of the last schedule block in the range
typeYesSchedule type the range belongs to, as used by the Tdarr UI
startYesIndex of the first schedule block in the range
library_idYesLibrary ID (dbID), from list_libraries

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / end / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / end / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / start / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / start / minimum
      Added value: +-9007199254740991
  2. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this mutates state non-destructively. The description adds only that the schedule gates when Tdarr may process a library, and crucially does not resolve whether 'toggle' flips each block's current value or sets the range to a specified state, nor whether the call is idempotent.

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 tight sentences with the action and scope front-loaded and the domain context trailing. Nothing is redundant for the length.

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 mutation tool with no output schema, the definition states what area of data changes (hour blocks in a library's schedule) but omits the outcome (does toggling flip or set?), any permission/auth expectations, and what a successful response looks like. Adequate to attempt a call, incomplete to predict its effect.

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%, so start, end, type, and library_id are already documented as block indices, schedule type, and dbID. The description adds only that start and end delimit a contiguous block range in a weekly schedule, which is marginal beyond the schema's own wording; the 'as used by the Tdarr UI' semantics of type are left untouched.

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 names a specific verb ('Turn ... on or off'), a specific resource ('a contiguous range of hour blocks in a library's weekly schedule'), and even the backing endpoint (POST /api/v2/toggle-schedule). The 'range' framing implicitly separates it from the single-block sibling update_schedule_block, but no sibling is named, so it stops short of full differentiation.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as update_schedule_block for single blocks. The sentence 'The schedule controls when Tdarr is allowed to process the library' is domain context rather than invocation guidance.

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