Skip to main content
Glama

localize_subtitles

Localize subtitles in-memory. Provide an SRT/ITT and/or a video (STT).

    Args:
        target_language_codes: Comma-separated codes (e.g. "fr,de,ja").
        subtitle_path: Optional public HTTPS subtitle URL (hosted) or local path (stdio).
        video_path: Optional public HTTPS video URL (hosted) or local path (stdio) for STT.
        glossary_path: Optional public HTTPS glossary URL (hosted) or local path (stdio).
        source_language_code: Source language code.
        context: Optional localization context.
        formality: Optional formality override.
        output_dir: Local output directory (stdio). Hosted mode always returns subtitle download URLs.
    

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": {
      "target_language_codes": "<target_language_codes>"
    },
    "name": "localize_subtitles"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoOptional localization context.
formalityNoOptional formality override.
output_dirNoLocal output directory (stdio). Hosted mode always returns subtitle download URLs.
video_pathNoOptional public HTTPS video URL (hosted) or local path (stdio) for STT.
glossary_pathNoOptional public HTTPS glossary URL (hosted) or local path (stdio).
subtitle_pathNoOptional public HTTPS subtitle URL (hosted) or local path (stdio).
source_language_codeNoSource language code.en
target_language_codesYesComma-separated codes (e.g. "fr,de,ja").

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / context / description
      Added value: +"Optional localization context."
    • addedInput schema / properties / formality / description
      Added value: +"Optional formality override."
    • addedInput schema / properties / glossary_path / description
      Added value: +"Optional public HTTPS glossary URL (hosted) or local path (stdio)."
    • addedInput schema / properties / output_dir / description
      Added value: +"Local output directory (stdio). Hosted mode always returns subtitle download URLs."
    • addedInput schema / properties / source_language_code / description
      Added value: +"Source language code."
    • addedInput schema / properties / subtitle_path / description
      Added value: +"Optional public HTTPS subtitle URL (hosted) or local path (stdio)."
    • addedInput schema / properties / target_language_codes / description
      Added value: +"Comma-separated codes (e.g. \"fr,de,ja\")."
    • addedInput schema / properties / video_path / description
      Added value: +"Optional public HTTPS video URL (hosted) or local path (stdio) for STT."
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: hosted mode accepts public HTTPS URLs and always returns subtitle download URLs, while stdio uses local paths and output_dir. It omits permissions, cost/latency, whether both subtitle and video inputs can be combined, and what happens to existing files in output_dir.

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 first sentence is well front-loaded, but the Args block duplicates the input schema nearly verbatim without adding new meaning, which inflates length. Structure is readable but not economical.

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?

An output schema exists, so return values need not be explained, and the hosted/stdio distinction is covered. For an eight-parameter localization tool with no annotations, gaps remain around required-vs-optional input combinations, failure modes, and supported language code formats.

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 eight parameters are already documented in the schema, and the Args block largely restates those same descriptions. The added value beyond the schema is minimal, making the baseline 3 appropriate.

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?

States a specific verb and resource ("Localize subtitles in-memory") and hints at a mode distinction with "in-memory." It never names or contrasts with the sibling localize_subtitle_file, so an agent must infer the boundary between the two.

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?

The text says what inputs to supply ("an SRT/ITT and/or a video (STT)") but gives no guidance on when to choose this tool over localize_subtitle_file or other siblings. Hosted-versus-stdio notes describe input forms rather than selection criteria.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.