Skip to main content
Glama

AI Voice Cloner

ai_voice_cloner_create_audio

MCP guidance:

  • Starts an async audio job; returns id and credits_charged. For finished results, call wait_for_audio_project with that id or poll GET /v1/audio-projects/{id} until complete, error, or canceled. Results include downloads; wait helpers add exact_download_urls. Preserve signed URLs and query parameters; never append expiration metadata.

  • For *_file_path, use an existing Magic Hour path or the upload-URL endpoint's file_path after uploading raw bytes to its presigned URL. Direct public media URLs may work if stable and fetchable as raw bytes; hotlinked URLs can fail. Prefer the upload-URL endpoint when unsure.

Clone a voice from an audio sample and generate speech.

  • Each character costs 0.1 credits.

  • The cost is rounded up to the nearest whole number Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use only a recording of your own voice or a voice you have permission to clone. Do not impersonate or deceive others.

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": {
      "assets": "<assets>",
      "style": "<style>"
    },
    "name": "ai_voice_cloner_create_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoGive your audio a custom name for easy identification.Voice Cloner - dateTime
styleYes
assetsYesProvide the assets for voice cloning.

Output Schema

NameRequiredDescriptionDefault
idYesUnique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads.
credits_chargedYesThe amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / style / properties / language
      Added value: +{
      +  "default": "auto",
      +  "description": "Spoken language. Use a canonical lowercase language name, or auto to detect the language from the text. Defaults to auto.",
      +  "enum": [
      +    "auto",
      +    "chinese",
      +    "english",
      +    "japanese",
      +    "korean",
      +    "german",
      +    "french",
      +    "spanish",
      +    "italian",
      +    "russian",
      +    "portuguese",
      +    "hindi",
      +    "polish",
      +    "arabic",
      +    "dutch",
      +    "hebrew",
      +    "tagalog",
      +    "thai",
      +    "urdu",
      +    "turkish",
      +    "vietnamese",
      +    "tamil",
      +    "persian",
      +    "ukrainian",
      +    "bengali",
      +    "indonesian",
      +    "marathi",
      +    "romanian",
      +    "swahili",
      +    "nepali",
      +    "telugu",
      +    "punjabi",
      +    "gujarati",
      +    "javanese",
      +    "burmese",
      +    "kannada",
      +    "cantonese",
      +    "uzbek",
      +    "afrikaans",
      +    "albanian",
      +    "amharic",
      +    "armenian",
      +    "assamese",
      +    "azerbaijani",
      +    "basque",
      +    "belarusian",
      +    "bulgarian",
      +    "catalan",
      +    "cebuano",
      +    "croatian",
      +    "czech",
      +    "danish",
      +    "estonian",
      +    "finnish",
      +    "galician",
      +    "georgian",
      +    "greek",
      +    "haitian creole",
      +    "hungarian",
      +    "icelandic",
      +    "kazakh",
      +    "konkani",
      +    "lao",
      +    "latvian",
      +    "lithuanian",
      +    "luxembourgish",
      +    "macedonian",
      +    "maithili",
      +    "malagasy",
      +    "malay",
      +    "malayalam",
      +    "mongolian",
      +    "norwegian",
      +    "odia",
      +    "pashto",
      +    "serbian",
      +    "sindhi",
      +    "sinhala",
      +    "slovak",
      +    "slovenian",
      +    "swedish",
      +    "welsh"
      +  ],
      +  "example": "spanish",
      +  "type": "string"
      +}
    • addedInput schema / properties / style / properties / speed
      Added value: +{
      +  "default": 1,
      +  "description": "Speech speed multiplier, from 0.75 to 1.30 inclusive. Defaults to 1 (normal speed).",
      +  "example": 1.15,
      +  "maximum": 1.3,
      +  "minimum": 0.75,
      +  "type": "number"
      +}
  2. Added
  3. Removed
  4. Changed1 schema field 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"
      -}
  5. Changed1 schema field 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"
      +}
  6. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), it discloses the async job model, the returned id and credits_charged, terminal statuses, and that results include downloads while wait helpers add exact_download_urls. It also states the pricing (0.1 credits per character, rounded up), the signed-URL preservation rule, and consent/anti-impersonation constraints — behavior the annotations cannot convey. It is weaker on what happens on failure/refund or whether credits are charged for failed jobs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and largely earns its place, but the purpose statement is buried mid-paragraph behind a generic 'MCP guidance' preamble about the async job. The settings/constraints paragraph ("A listed model, resolution, duration or count...") is boilerplate-heavy and not specific to this tool, adding bulk without a corresponding voice-cloning detail.

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 mutating, nested-schema, async job tool, the description covers the full lifecycle: submission, cost model, polling vs. wait helper, result fields, file input conventions, and pre-flight checks against account constraints. An output schema exists, so it correctly avoids detailing return payload shapes and instead focuses on the workflow an agent must orchestrate.

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 schema coverage at 67%, the description usefully compensates for the least self-documenting parameter by explaining the allowed forms of audio_file_path (existing Magic Hour path vs. upload-URL response field vs. direct URL) and the pitfalls of public URLs. It also ties text length to cost (per character, rounded up), adding meaning beyond the prompt maxLength. Speed, language, and name are left entirely to the schema, which does document them well.

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?

The line "Clone a voice from an audio sample and generate speech" gives a specific verb and resource that an agent can act on. It implicitly separates this from sibling generation tools (e.g., ai_voice_generator_create_audio) by emphasizing cloning from a sample, but it never explicitly contrasts with that sibling, so it stops short of a 5.

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 explicitly routes post-submission behavior: call wait_for_audio_project with the returned id or poll GET /v1/audio-projects/{id} until complete/error/canceled. It also gives practical guidance for the *_file_path input (prefer the upload-URL endpoint when unsure; hotlinked URLs can fail) and tells the agent to read get_account_info before choosing settings. It does not explicitly state when to prefer this tool over ai_voice_generator_create_audio, which keeps it at 4.

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.