Skip to main content
Glama

Patch subtitles sync

bazarr_patch_subtitles_sync

Syncs an external subtitle file with its video by adjusting timing, with optional framerate fix and quality or offset limits. Use it to correct out-of-sync subtitles for episodes or movies.

Instructions

Sync external subtitles with the video

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

Input Schema

NameRequiredDescriptionDefault
hiNoHI subtitles from ["True", "False"]
idYesMedia ID (episodeId, radarrId)
gssNoUse Golden-Section Search from ["True", "False"]
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.8/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, which already discloses the mutation profile. The description adds the endpoint (PATCH /api/subtitles) but doesn't explain side effects, what files get modified, or how sync differs from extract/mod/translate siblings.

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; purpose and endpoint are front-loaded with no filler. Brevity is arguably under-specification given 15 parameters, but nothing is wasteful.

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?

With 15 parameters, 3 required, and no output schema, the description should clarify the sync semantics and result. It gives no indication of what 'sync' requires (reference file or track), what happens on failure, or how it relates to siblings that also touch subtitles.

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% with descriptions for all 15 parameters, so the baseline is 3. The description adds nothing beyond the schema for things like reference tracks, gss, or quality thresholds.

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?

States verb 'Sync' and resource 'external subtitles with the video', which is clearer than the title alone, but it's vague about what sync means (offset/framerate correction) and doesn't distinguish from siblings like patch_movies_sync or patch_series_sync.

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?

No when-to-use guidance, no prerequisites, no exclusions. The siblings bazarr_patch_movies_sync and bazarr_patch_series_sync presumably cover the same operation with media-type scoping, but the description doesn't explain how this differs or when to use it.

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