Skip to main content
Glama

Clone a voice from a recording

clone_voice

Create a voice that sounds like a specific person, from one short recording (about 30 seconds of clean speech). Almost any audio file works — MP3, WAV, M4A, AAC, OGG, FLAC, WebM and more are converted server-side, and anything longer than 30 seconds is trimmed. The audio must be passed as base64, so this suits a local file you can read and encode; there is no upload URL. Only clone a voice you own or have permission to use. Uses one of the cloned-voice slots included in the plan; costs no points.

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": {
      "name": "<name>",
      "language": "<language>",
      "audio_base64": "<audio_base64>"
    },
    "name": "clone_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name for the cloned voice
languageYesThe language spoken in the recording — a name or code from list_voice_languages (e.g. "English", "EN_US"). Use "auto" to let the provider detect it.
transcriptNoWhat is said in the recording. Optional, but it noticeably improves the clone.
audio_base64YesThe recording, base64-encoded (no data: prefix). Any common audio format; up to ~8 MB of base64 (roughly a 6 MB file), trimmed to the first 30 seconds.
remove_background_noiseNoClean up background noise before cloning (default true)

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 declare readOnlyHint=false and openWorldHint=true but say nothing about pricing, input handling, or consent. The description adds real behavioral context beyond them: server-side transcoding of many formats, trimming to the first 30 seconds, no upload endpoint, consent restrictions, and that the call consumes a plan slot but costs no points.

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-loads the core action and then layers constraints, formats, encoding, consent, and cost in an order that matches an agent's decision sequence. Dense but nearly every clause carries information an agent would otherwise have to guess; a slightly tighter format list would improve it.

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?

For a 5-parameter mutation with no output schema, the description covers inputs, limits, cost, and legal constraints well. The one missing piece is what comes back — presumably a voice identifier to pass to generate_speech — which the agent must infer since no output schema exists.

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 already 100%, so the baseline is 3; the description goes further by explaining why audio_base64 exists (no upload URL), what happens to oversized input (trimmed to 30s) and unsupported formats (converted server-side). It adds little about name or language, but the language parameter's own schema description covers that adequately.

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 concrete verb and resource ('Create a voice that sounds like a specific person') plus the mechanism ('from one short recording'), which inherently separates it from design_voice and save_designed_voice. An agent knows exactly what this tool produces 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?

Gives clear preconditions for use: a ~30s clean recording, a local file that can be base64-encoded, and no upload URL available, which steers an agent with a remote URL to a different approach. Permission requirements and cost implications are also stated. It stops short of explicitly naming an alternative (e.g. design_voice) for the no-recording case.

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