Skip to main content
Glama

Generate speech

auteo_generate_speech

Submit a text-to-speech generation. This SPENDS the user's credits: speech is priced per character of text and each take is charged separately (n takes cost n times), so call auteo_estimate_cost with the model, text and n first. Call auteo_get_model first to pick a voiceId from the model's preset voices (each with name, gender, language and description) and to read how instruction works on that model: on style models (VoxCPM 2) it is a free-form speaking-style instruction, on emotion models (IndexTTS 2.5) it describes the emotion to convey. Returns a requestId and the charged cost; then call auteo_get_generation (speech usually takes seconds to a minute; each take is one audio output with audioUrl and durationSeconds). If this call times out, check auteo_list_generations before resubmitting and reuse the same clientRequestId. If it fails with insufficient credits, tell the user to top up at topUpUrl instead of retrying.

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": {
      "model": "<model>",
      "text": "<text>",
      "voiceId": "<voiceId>"
    },
    "name": "auteo_generate_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNoNumber of takes, default 1. Each take is charged.
seedNoRandom seed; omit for random. Take i uses seed + i.
textYesText to speak, up to the model's max length (see get_model); billed per character.
modelYesSpeech model id.
voiceIdYesPreset voice id from the model's voiceId options.
instructionNoOptional description of how to speak: a speaking style (style models) or an emotion (emotion models).
clientRequestIdNoIdempotency key. Leave empty; only reuse the value returned by a previous timed-out call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does: it discloses that the call spends credits, that billing is per character, that n takes cost n times, that latency is seconds to a minute, that the response carries a requestId and charged cost, and how to recover from a timeout via clientRequestId reuse.

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?

It is a single dense paragraph, but the cost warning is front-loaded and every sentence carries actionable information — no filler or repetition of the schema. Readability would improve slightly with sentence breaks separating the cost warning, the get_model guidance, and the post-call flow.

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 7-parameter mutation with no annotations and no output schema, the description covers cost model, latency, return contents, polling target, timeout recovery and credit-failure handling. Nothing needed to invoke it correctly is missing.

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 baseline is 3; the description earns extra by explaining that instruction is a speaking style on style models (VoxCPM 2) versus an emotion on emotion models (IndexTTS 2.5), and that voiceId must come from the model's preset voices with name, gender and language.

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?

The description opens with a specific verb and resource: 'Submit a text-to-speech generation.' The 'text-to-speech' qualifier implicitly separates it from auteo_generate_image, auteo_generate_music and auteo_generate_video, and the downstream mentions of audioUrl and durationSeconds confirm the output type.

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?

It names explicit prerequisites: call auteo_estimate_cost with model, text and n first, and call auteo_get_model first to choose a voiceId. It also routes rare cases to alternatives — auteo_list_generations on timeout, and topping up via topUpUrl rather than retrying on insufficient credits — leaving nothing to inference.

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