Skip to main content
Glama

Set voice

set_voice

Set the voiceover voice for every clip in a project, or only for the clips in clip_ids.

Use this to apply a clueprint's voice (read voiceover.voice.name and voiceover.voice.engine from the clueprint source data), or to switch all clips to a specific voice in one call. When the user names specific clips, pass their ids in clip_ids so the other clips keep their voice. The voice is looked up by name (case-insensitive; a saved voice's code also works), preferring voice_engine.

Never guess a name: a name that matches nothing applies the workspace default and returns matched: false with a note. Then pick a real voice with find(type='voices'), re-apply, and tell the user. engine_substituted: true means the named voice exists only on another engine and was applied there.

Common engines: 'eleven' (ElevenLabs), 'cartesia', 'google'. Only clips that exist now change; a blank clip added later with add_clips takes the previous clip's voice.

ElevenLabs voices use the latest voice generation unless voice_version says otherwise; a voice the workspace saved keeps its saved version. Leave it unset; pass "legacy" ONLY when the user explicitly asks for the legacy/older voice generation.

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": {
      "project_id": "<project_id>",
      "voice_name": "<voice_name>",
      "voice_engine": "<voice_engine>"
    },
    "name": "set_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_idsNoClip ids to change the voice on. Omit to change EVERY clip in the project.
project_idYesThe project (guide) ID
voice_nameYesVoice name exactly as find(type='voices') lists it (e.g. 'Alex').
voice_engineYesVoice engine — 'eleven', 'cartesia', 'google', etc.
voice_versionNoElevenLabs voice generation. Leave unset: latest, except a voice the workspace saved keeps its saved version. Use 'legacy' ONLY when the user explicitly asks for the legacy/older voice generation; never choose it yourself. Ignored for non-ElevenLabs voices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / voice_version / description
      Previous value: -"ElevenLabs voice generation. Leave unset (latest). Use 'legacy' ONLY when the user explicitly asks for the legacy/older voice generation; never choose it yourself. Ignored for non-ElevenLabs voices."New value: +"ElevenLabs voice generation. Leave unset: latest, except a voice the workspace saved keeps its saved version. Use 'legacy' ONLY when the user explicitly asks for the legacy/older voice generation; never choose it yourself. Ignored for non-ElevenLabs voices."
  2. Changed1 schema field changed
    • changedInput schema / properties / voice_name / description
      Previous value: -"Voice name as stored in the voices table (e.g. 'Alex', 'Sofia')"New value: +"Voice name exactly as find(type='voices') lists it (e.g. 'Alex')."
  3. Changed2 schema fields changed
    • addedInput schema / properties / clip_ids
      Added value: +{
      +  "description": "Clip ids to change the voice on. Omit to change EVERY clip in the project.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / voice_version
      Added value: +{
      +  "description": "ElevenLabs voice generation. Leave unset (latest). Use 'legacy' ONLY when the user explicitly asks for the legacy/older voice generation; never choose it yourself. Ignored for non-ElevenLabs voices.",
      +  "enum": [
      +    "latest",
      +    "legacy"
      +  ],
      +  "type": "string"
      +}
  4. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "voice_name",
      -  "voice_engine",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "project_id",
      +  "voice_name",
      +  "voice_engine"
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "voice_name",
      -  "voice_engine"
      -]New value: +[
      +  "project_id",
      +  "voice_name",
      +  "voice_engine",
      +  "context",
      +  "llm_model"
      +]
  6. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the silent-fallback behavior ('a name that matches nothing applies the workspace default and returns matched: false'), the engine_substituted indicator, and the timing quirk that a blank clip added later inherits the previous clip's voice. What it does not state is whether overwriting an existing clip's voice is undoable or what the response looks like beyond the two flags, but the disclosed edge-case semantics are far richer than the annotations alone.

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 and the clip_ids scoping, then edge cases and warnings in decreasing priority — good structure. It is on the long side and mildly restates the voice_version guidance already present in the schema, but no sentence is filler.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation tool with no output schema, the description covers what matters: fallback on unmatched names, the two result flags an agent must interpret, the engine vocabulary, and the add_clips inheritance quirk. An agent can call this correctly and handle the failure paths without further discovery.

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?

With 100% schema coverage the baseline is 3, and the description earns the bump by adding lookup semantics the schema omits: names are matched case-insensitively, a saved voice's code also works, and voice_engine is used as a preference during lookup. It also ties voice_version to the engine (ignored for non-ElevenLabs), which clarifies cross-parameter interaction.

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 and resource ('Set the voiceover voice') plus the exact scope ('every clip in a project, or only for the clips in clip_ids'), so the agent knows precisely what changes and over what set. The follow-up sentence naming the two distinct use cases (apply a clueprint's voice vs. switch all clips to a named voice) further sharpens the purpose.

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

Usage Guidelines5/5

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

Gives explicit conditions: pass clip_ids when the user names specific clips so others keep their voice, omit to change every clip. It also routes the agent to an alternative for discovery ('pick a real voice with find(type='voices')') and constrains when to pass voice_version ('ONLY when the user explicitly asks', 'never choose it yourself').

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.