Skip to main content
Glama

Choose a voice per character

set_speaker_voices

For a multi_speaker localize_video job waiting at WaitingSpeakerVoices: give each speaker (key = speaker label from get_localization_status, e.g. "0") a voice token for that job's language, then dubbing continues. Speakers you leave out use the job's main voice. Pick voices that fit each character (gender, age, tone from the sample lines) and confirm with the user. translate_first = true continues to translation and pauses again with translated sample lines. Can also be called earlier, while the job is still transcribing or translating.

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": {
      "job_guid": "<job_guid>"
    },
    "name": "set_speaker_voices"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_guidYesjob_guid of one language from localize_video.
speaker_voicesNo{"0": "v1:...", "1": "v1:..."}
translate_firstNoTranslate first and choose voices after (pauses again).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (mutation, non-idempotent, non-destructive, closed-world), and the description adds genuinely new behavioral context: the job-state gate, the default for omitted speakers, the user-confirmation expectation, and the two possible continuation flows. It does not say what happens on a repeat call or an invalid state/job_guid, which matters given idempotentHint=false.

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?

Dense but front-loaded: the first clause establishes the state gate before any detail, and each subsequent sentence carries distinct information (defaults, guidance, translate_first, early-call case). Slightly clause-heavy in the opening sentence, but no padding.

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?

For a mutating, state-dependent tool with a nested object parameter and no output schema, the description covers the state machine and continuation behavior well. It leaves gaps on failure modes (wrong state, unknown speaker label, invalid token) and on whether a second call replaces prior assignments, which an agent needs before invoking.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, but the description adds real meaning: speaker keys are labels from get_localization_status (e.g. "0"), values must be tokens valid for that job's language, omitted speakers inherit the job's main voice, and translate_first defers voice choice until after translation. That is more than the schema conveys on its own.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource+scope: assign a voice token per speaker for a multi_speaker localize_video job sitting at WaitingSpeakerVoices. It also names the key source (speaker label from get_localization_status) and the effect (dubbing continues), so an agent knows exactly what this does versus voice-listing siblings.

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

Usage Guidelines4/5

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

Gives a clear triggering condition (job waiting at WaitingSpeakerVoices), an alternative timing ('can also be called earlier, while the job is still transcribing or translating'), and the translate_first branch that pauses again with translated samples. It stops short of pointing at which sibling supplies valid voice tokens (list_voices/list_my_custom_voices) or stating what to do if the job is in an incompatible state.

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.

Resources