Skip to main content
Glama

Activate Voice

beatra.voices.activate
Idempotent

Activate a cloned voice that waits for activation (status pending_activation), such as a free preview made with preview_first=true: one call charges the clone price, and the voice is ready for speech when the task succeeds and stays on this account until it is deleted. The voice activated is the one in the preview. If activation fails, the charge is refunded automatically; after it succeeds it is not refunded, and an activated voice that is deleted cannot be restored. If the balance is too low, nothing is charged and the reply gives the top-up link. A voice that is already ready, including every preset voice and every clone made without preview_first, needs nothing: the call charges nothing and changes nothing. This call consumes Beatra credits unless the voice is already ready. It creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.

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": {
      "voice_id": "<voice_id>",
      "client_request_id": "<client_request_id>"
    },
    "name": "beatra.voices.activate"
  }
}

Input Schema

NameRequiredDescriptionDefault
voice_idYesThe voice_id of a voice waiting for activation (status pending_activation), from the clone result or beatra.voices.list.
client_request_idYesStable retry identity for this billable operation. Reuse only for the exact same generation arguments.

Output Schema

NameRequiredDescriptionDefault
taskNo
errorNo
usageNo
voiceNo
statusNo
billingNo
task_idNo
terminalNo
artifactsNo
resolved_modelNo
charged_creditsNo0

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / description
      Previous value: -"Activate a cloned voice that waits for activation: one call with the clone result's quote, after the user agrees."New value: +"Activate a cloned voice that waits for activation: one call charges the activation price."
    • removedInput schema / properties / confirm_credits
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "The quoted price_credits, repeated to confirm the user agreed to exactly that price.",
      -  "title": "Confirm Credits"
      -}
    • removedInput schema / properties / confirmation_token
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 1024,
      -      "minLength": 1,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "The confirmation_token from the clone result's activation.quote (or a later quote); valid for 24 hours. Omit it to get a new quote; nothing is charged.",
      -  "title": "Confirmation Token"
      -}
    • changedInput schema / properties / voice_id / description
      Previous value: -"The voice_id from the clone result."New value: +"The voice_id of a voice waiting for activation (status pending_activation), from the clone result or beatra.voices.list."
    • removedOutput schema / $defs / VoiceActivation / properties / quote
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "$ref": "#/$defs/VoiceActivationQuote"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "The activation quote, on the clone task's result. Show the price and terms to the user and, with their consent, call activate once with quote.confirmation_token and confirm_credits = price_credits (valid for 24 hours; without a token, activate returns a new quote)."
      -}
    • removedOutput schema / $defs / VoiceActivationQuote
      Removed value: -{
      -  "description": "The price of activating one preview voice. Nothing is charged until it is confirmed.",
      -  "properties": {
      -    "balance_credits": {
      -      "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      -      "title": "Balance Credits",
      -      "type": "string"
      -    },
      -    "confirmation_token": {
      -      "title": "Confirmation Token",
      -      "type": "string"
      -    },
      -    "message": {
      -      "title": "Message",
      -      "type": "string"
      -    },
      -    "preview": {
      -      "anyOf": [
      -        {
      -          "$ref": "#/$defs/VoicePreview"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null
      -    },
      -    "price_credits": {
      -      "title": "Price Credits",
      -      "type": "integer"
      -    },
      -    "sufficient_balance": {
      -      "title": "Sufficient Balance",
      -      "type": "boolean"
      -    },
      -    "terms": {
      -      "additionalProperties": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "description": "The activation terms in zh, en and ja",
      -      "title": "Terms",
      -      "type": "object"
      -    },
      -    "terms_version": {
      -      "title": "Terms Version",
      -      "type": "string"
      -    },
      -    "token_expires_at": {
      -      "format": "date-time",
      -      "title": "Token Expires At",
      -      "type": "string"
      -    },
      -    "voice_id": {
      -      "title": "Voice Id",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "voice_id",
      -    "price_credits",
      -    "balance_credits",
      -    "sufficient_balance",
      -    "confirmation_token",
      -    "token_expires_at",
      -    "terms_version",
      -    "terms",
      -    "message"
      -  ],
      -  "title": "VoiceActivationQuote",
      -  "type": "object"
      -}
    • changedOutput schema / description
      Previous value: -"TaskToolOutput's fields plus the voice, the credits charged and the quote."New value: +"TaskToolOutput's fields plus the voice and the credits charged."
    • removedOutput schema / properties / quote
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": true,
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Quote"
      -}
  2. Changed1 schema field changed
    • addedOutput schema / $defs / VoiceCapabilities / properties / supports_dialogue
      Added value: +{
      +  "default": false,
      +  "description": "True ONLY when this voice can be used in text_to_dialogue (POST /v1/audio/speech/dialogue & beatra.speech.synthesize_dialogue)",
      +  "title": "Supports Dialogue",
      +  "type": "boolean"
      +}
  3. Changed2 schema fields changed
    • addedOutput schema / $defs / Voice / properties / capabilities
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/VoiceCapabilities"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Controllable synthesis and conversion capabilities supported by this voice."
      +}
    • addedOutput schema / $defs / VoiceCapabilities
      Added value: +{
      +  "properties": {
      +    "supported_dialects": {
      +      "description": "Dialect codes supported on this voice (e.g. yue, sichuan, dongbei)",
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Supported Dialects",
      +      "type": "array"
      +    },
      +    "supported_emotions": {
      +      "description": "Canonical discrete emotions supported by this voice (empty when none)",
      +      "items": {
      +        "enum": [
      +          "happy",
      +          "sad",
      +          "angry",
      +          "fearful",
      +          "disgusted",
      +          "surprised",
      +          "calm",
      +          "fluent"
      +        ],
      +        "type": "string"
      +      },
      +      "title": "Supported Emotions",
      +      "type": "array"
      +    },
      +    "supports_context": {
      +      "description": "Whether multi-segment prosody context (previous_text, next_text, or engine context) is supported",
      +      "title": "Supports Context",
      +      "type": "boolean"
      +    },
      +    "supports_direction": {
      +      "description": "Whether this voice follows natural-language performance direction in speech.synthesize",
      +      "title": "Supports Direction",
      +      "type": "boolean"
      +    },
      +    "supports_next_text": {
      +      "description": "Whether top-level next_text conditions prosody on this voice",
      +      "title": "Supports Next Text",
      +      "type": "boolean"
      +    },
      +    "supports_performance_tags": {
      +      "description": "Whether inline performance tags ({whisper}, {excited}, ...) are performed by this voice",
      +      "title": "Supports Performance Tags",
      +      "type": "boolean"
      +    },
      +    "supports_previous_text": {
      +      "description": "Whether top-level previous_text conditions prosody on this voice",
      +      "title": "Supports Previous Text",
      +      "type": "boolean"
      +    },
      +    "supports_pronunciation_ipa": {
      +      "description": "Whether {pron word /ipa/} is compiled to phonetic pronunciation for this voice",
      +      "title": "Supports Pronunciation Ipa",
      +      "type": "boolean"
      +    },
      +    "supports_pronunciation_pinyin": {
      +      "description": "Whether {pron word pinyin} is compiled to phonetic pronunciation for this voice",
      +      "title": "Supports Pronunciation Pinyin",
      +      "type": "boolean"
      +    },
      +    "supports_speech_to_speech": {
      +      "description": "True ONLY when this voice can be used as target voice in speech_to_speech (POST /v1/audio/speech-to-speech & beatra.speech.convert)",
      +      "title": "Supports Speech To Speech",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "supports_direction",
      +    "supports_performance_tags",
      +    "supports_context",
      +    "supports_previous_text",
      +    "supports_next_text",
      +    "supports_pronunciation_pinyin",
      +    "supports_pronunciation_ipa",
      +    "supports_speech_to_speech"
      +  ],
      +  "title": "VoiceCapabilities",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: one call charges the clone price, refunds on failure, no refund after success, irreversible deletion after activation, no charge on low balance, and an asynchronous task flow with polling. Annotations already cover idempotency and mutation hints, but the description supplies the billing and lifecycle details that matter for invocation.

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 purpose is front-loaded and the paragraph is dense with relevant operational detail. It is longer than typical but most sentences earn their place by covering billing, refunds, no-op cases, and async retry semantics.

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?

Complete for a billable asynchronous activation tool with an output schema and full schema coverage. It covers cost, refund policy, irreversibility, async polling, idempotent retry behavior, and the already-ready no-op case.

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 schema already defines both parameters. The description still adds useful meaning by tying voice_id to the voice shown in the preview and reiterating that client_request_id must only be reused for an identical retry.

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: activate a cloned voice waiting for activation with status pending_activation. It also distinguishes the targeted voice state from already-ready/preset voices and from clones made without preview_first.

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?

Explicitly says when to use it, when not to use it, and what to do instead for task polling via beatra.tasks.get. It also explains the no-op case for voices that are already ready.

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