Skip to main content
Glama

Patch subtitles translate

bazarr_patch_subtitles_translate

Translate external subtitles for a movie or episode into a chosen language, with optional synchronization and formatting controls, so viewers can watch content in their preferred language.

Instructions

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

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.9/5.0
Behavior2/5

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

Annotations already declare readOnly=false, destructive=false, openWorld=true and idempotent=false, so safety is partly covered. The description adds nothing beyond them: it never says whether the translation overwrites the existing subtitle file, creates a new language track, requires a translation provider configured in Bazarr, or is long-running. For a write operation that alters subtitle files, that silence is a real gap.

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?

The intent is front-loaded in a single short sentence with no hedging or filler. The appended "PATCH /api/subtitles" line is low-value boilerplate for an agent, but the overall length is tight.

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?

Fifteen parameters, a mutating operation, and no output schema demand more than two lines. The definition omits prerequisites, side effects on existing subtitle files, and the relationship to the other subtitles patch tools, leaving the agent to infer behavior from parameter names 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% across all 15 parameters, so the schema already carries the semantics and baseline 3 applies. The description mentions neither the required language/type/id triple nor the many sync-related optional fields, so it adds no meaning over the schema.

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?

"Translate external subtitles" gives a specific verb (translate) plus a resource scope (external subtitles), which distinguishes it from the sync, mod, and extract siblings by action. It does not, however, explicitly name those siblings or clarify what "external" means versus embedded tracks.

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 (e.g. an existing subtitle must be present), and no pointer to bazarr_patch_subtitles_sync or bazarr_patch_subtitles_mod as alternatives. The only implied constraint is the word "external", which is not explained.

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