Skip to main content
Glama

Set a character's voice

set_character_voice
Idempotent

Locks how a character sounds across every scene. There is no text-to-speech: the video model speaks the dialogue, and this sets what it is told. voice_key: a key from get_catalog("voices") or a short description ("low, tired, husky"). sample: {take_id, start_seconds, end_seconds} to cut 2–10 s from one of this drama’s scene videos where this character speaks alone and sounds right, or null to remove the sample. Uploaded voice recordings are not accepted: voices of real people are never cloned. The sample is sent as an audio reference to models that take one (Wan 3.0 through DashScope).

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": {
      "character_id": "<character_id>"
    },
    "name": "set_character_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
sampleNoA clip of a scene video where the voice is right: take_id plus start_seconds and end_seconds (3–8 s).
voice_keyNoA voice key from get_catalog(["voices"]); null clears it.
character_idYesThe character id (chr_…), from get_drama_context.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare it is a non-readonly, idempotent, non-destructive write; the description adds substantial behavior beyond that: no TTS occurs, the sample is only forwarded to models that accept an audio reference (Wan 3.0 via DashScope), and real-person voices are never cloned. These are exactly the operational facts an agent could not infer from structured fields.

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 opening sentence states the effect and the key limitation is front-loaded before per-parameter notes. It is dense but every sentence carries information; only the conflicting clip-length figure wastes the reader's trust rather than words.

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?

With annotations, a full output schema, and three well-documented params, the description supplies the remaining behavioral context (no cloning, model-dependent sample use, clearing semantics). The only real gap is the duration mismatch between description and schema, which should be reconciled.

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 baseline is 3, but the description genuinely extends meaning by noting voice_key also accepts a freeform short description like "low, tired, husky" and by explaining the sample's content requirements (single speaker, sounds right). It loses a point for stating a 2–10 s clip window while the schema says 3–8 s, an inconsistency that could mislead when constructing the call.

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?

"Locks how a character sounds across every scene" gives a specific verb (locks/set) and resource (character voice), and immediately distinguishes the mechanism from text-to-speech. An agent can tell this is the voice-persistence tool rather than a generation tool without opening the schema.

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?

It names the source for voice_key (get_catalog("voices")) and states exactly what a valid sample must be (2–10 s from one of this drama's scene videos where the character speaks alone), plus null semantics for clearing. It does not spell out explicit when-not conditions, but the constraints on each input effectively define the valid usage envelope.

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.