Skip to main content
Glama

Patch subtitles extract

bazarr_patch_subtitles_extract

Extract embedded subtitle tracks from video files by media ID and language through Bazarr. Use it to pull subtitles from episodes or movies for syncing, editing, or reuse.

Instructions

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

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
Behavior2/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and openWorldHint=true; the description adds only the redundant 'PATCH /api/subtitles' line. For a non-idempotent mutation it discloses nothing about side effects, whether a subtitle file is written to disk, or what happens on repeat calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The body is front-loaded and free of padding, but it is under-specified rather than genuinely concise. The 'PATCH /api/subtitles' line restates routing information the transport already handles and earns little place.

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, no output schema, and a mutating action, the definition should explain which parameters matter for extraction and what result to expect. Instead it supplies one short clause, leaving the agent to reconstruct behavior from the schema alone.

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 all 15 parameters are documented in the schema itself and the baseline of 3 applies. The description contributes no additional meaning about how parameters interact for the extract action (e.g., subtitles_id, path, language).

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 states a specific verb and resource ('Extract embedded subtitles'), which is clearer than the tool name alone. It does not, however, distinguish this from near-identical siblings such as bazarr_patch_subtitles_sync, _mod, or _translate, so the agent must infer the boundary from names.

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 when to prefer extract over sync/mod/translate. The only implicit signal is the word 'extract', leaving selection entirely to inference.

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