Skip to main content
Glama

Patch subtitles mod

bazarr_patch_subtitles_mod

Apply a named mod to external subtitles in Bazarr, such as synchronization or extraction, so you can adjust subtitle timing and formatting for a movie or episode.

Instructions

Apply a named mod to external subtitles

PATCH /api/subtitles

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": {
      "mod": "<mod>",
      "language": "<language>",
      "type": "<type>",
      "id": "<id>"
    },
    "name": "bazarr_patch_subtitles_mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiNoHI subtitles from ["True", "False"]
idYesMedia ID (episodeId, radarrId)
gssNoUse Golden-Section Search from ["True", "False"]
modYesName of the subtitle mod to apply
pathNoSubtitles file path
typeYesMedia type from ["episode", "movie"]
forcedNoForced subtitles from ["True", "False"]
languageYesLanguage code2
referenceNoReference to use for sync from video file track number (a:0) or some subtitles file path
subtitles_idNoSubtitles database ID (required for the "extract" action)
original_formatNoUse original subtitles format from ["True", "False"]
no_fix_framerateNoDon't try to fix framerate from ["True", "False"]
quality_min_scoreNoMinimum quality score for sync (0.0-1.0)
max_offset_secondsNoMaximum offset seconds to allow
quality_max_offset_secondsNoMaximum offset in seconds for quality checks
quality_max_framerate_deviationNoMaximum framerate deviation (0.0-1.0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.1

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the safety profile is partly covered. The description adds only "external subtitles" and the PATCH route — it never says what a mod actually does to the file, whether the original subtitle is overwritten or backed up, or what mod names are valid, which matters for a non-idempotent mutation.

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?

Two short lines, front-loaded with the action and followed by the endpoint. There is no wasted wording, though the brevity here is closer to under-specification than to disciplined editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, non-idempotent, open-world mutation with no output schema, two lines of description are far too thin. An agent has no idea what mods exist, what the response contains, or how this differs from the four sibling PATCH subtitle tools.

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%, so the 16 parameters are already documented in the schema and the baseline of 3 applies. The description contributes nothing beyond the schema — notably it does not enumerate valid `mod` values, which is the single most important semantic gap here.

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

Purpose3/5

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

The description names a specific verb and resource ("Apply a named mod to external subtitles") plus the HTTP route, so the agent knows this mutates subtitle files. However, "mod" is never defined — with siblings like patch_subtitles_sync, patch_subtitles_translate and patch_subtitles_extract, the boundary between this generic mod endpoint and those specialized ones is unclear.

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 at all: no statement of which conditions call for a generic mod versus the sync/translate/extract siblings, no prerequisites, no mention that `mod` names a specific operation. The agent must infer everything from the name.

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

Deploy Server

Other Tools