Skip to main content
Glama

translate_dialogue

Localize speaker turns together with shared dialogue context.

    Each segment needs id, text, target_language, target_language_code and
    optional start_ms, end_ms, speaker_id from transcribe_audio_detailed.
    Returns timed translated turns with review details; different turns
    may target different languages. Does not synthesize speech.
    

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": {
      "segments": "<segments>"
    },
    "name": "translate_dialogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextNoOptional audience, purpose and surrounding context to guide localization.
segmentsYes1–500 dialogue turns, each with id, text, target_language, target_language_code and optional start_ms, end_ms, speaker_id from detailed transcription.
speakersNoOptional speaker metadata from detailed transcription, supplied alongside the dialogue turns.
formalityNoFormality override: very_informal, informal, neutral, formal or very_formal. Empty uses workspace defaults.
source_languageNoSource language name, for example "English".English
source_language_codeNoSource language code, for example "en"; empty omits the optional language hint/filter.en

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / context / description
      Added value: +"Optional audience, purpose and surrounding context to guide localization."
    • addedInput schema / properties / formality / description
      Added value: +"Formality override: very_informal, informal, neutral, formal or very_formal. Empty uses workspace defaults."
    • addedInput schema / properties / segments / description
      Added value: +"1–500 dialogue turns, each with id, text, target_language, target_language_code and optional start_ms, end_ms, speaker_id from detailed transcription."
    • addedInput schema / properties / source_language / description
      Added value: +"Source language name, for example \"English\"."
    • addedInput schema / properties / source_language_code / description
      Added value: +"Source language code, for example \"en\"; empty omits the optional language hint/filter."
    • addedInput schema / properties / speakers / description
      Added value: +"Optional speaker metadata from detailed transcription, supplied alongside the dialogue turns."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden, and it does disclose two useful behaviors: returns timed translated turns with review details, and does not synthesize speech. It omits safety/mutation profile (LLM cost, side effects), rate limits, and how review details behave, leaving real gaps for a no-annotation tool.

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?

Front-loaded with the core action, then supporting constraints in tight sentences. Minor wasted space restating segment fields already in the schema.

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

Completeness4/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 needn't be explained, and all six parameters are fully described in the schema. The description gives enough on behavior and input provenance; only the mutation/cost profile is unaddressed.

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%, so the baseline is 3. The description restates the required segment fields (id, text, target_language, target_language_code, optional start_ms/end_ms/speaker_id) but adds no format or syntax details beyond 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?

A specific verb and resource are stated: localize speaker turns together with shared dialogue context, and it notes that different turns may target different languages. This clearly separates it from a plain single-text translate, though it never names translate/translate_batch as alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: it indicates segment inputs come from transcribe_audio_detailed, suggesting it belongs downstream of transcription. It gives no explicit when-to-use or when-not versus translate/translate_batch, only the negative "does not synthesize speech".

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.