Skip to main content
Glama

Validate Dialogue

beatra.speech.validate_dialogue
Read-onlyIdempotent

Check a multi-speaker dialogue request before paying for it: verify voice eligibility (supports_dialogue=true) and cloned-voice limits, parse turn markup, list warnings, count weighted characters, estimate duration, and return the credit price. This call does not create a task, charge credits, or call the speech engine.

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": {
      "turns": "<turns>"
    },
    "name": "beatra.speech.validate_dialogue"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoOptional deterministic sampling seed (0 to 4294967295)
modelNoDialogue synthesis model ('auto', 'elevenlabs-v4-turbo', or 'elevenlabs-v4')auto
turnsYesOrdered list of 2 to 50 dialogue turns (up to 10 unique voices, at most 4 cloned voices)
formatNoOutput audio container format (mp3, wav, opus, or pcm)mp3
languageNoOptional BCP-47 language tag or 'auto'
next_textNoOptional text that comes right after this clip, for example the next line of a dialogue or the next paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its start is used (next_text_head_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
stabilityNoOptional dialogue voice stability from 0.0 (expressive) to 1.0 (consistent)
sample_rateNoOptional output sample rate in Hz for mp3, wav, or pcm (omit for opus)
model_optionsNoOptional provider-specific options under model_options.elevenlabs
previous_textNoOptional text that comes right before this clip, for example the previous line of a dialogue or the previous paragraph, so separate calls keep a continuous tone. It is never spoken and never billed; any length is accepted and only its end is used (previous_text_tail_characters on the model card). Models and voices that do not use it ignore it with an option_ignored warning.
subtitle_enableNoGenerate unified JSON, SRT, and VTT speaker-attributed subtitles alongside the audio
similarity_boostNoOptional speaker similarity adherence from 0.0 to 1.0

Output Schema

NameRequiredDescriptionDefault
errorNo
modelNo
validNo
currencyNo
warningsNoNon-blocking advisories: markup that was corrected or skipped (markup_adjusted), markup the model does not perform (markup_degraded), controls the model ignores (option_ignored), and voices scheduled for retirement (voice_retiring).
charactersNo
turn_countNo
cloned_voicesNo
unique_voicesNo
raw_charactersNo
estimated_creditsNo
compiled_charactersNo
estimated_duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), and the description goes further by spelling out the specific validations performed and explicitly guaranteeing no task creation, no credit charge, and no engine call. That no-side-effect guarantee is exactly the context an agent needs before running a check on a paid pipeline, and it is stated rather than left to the annotations.

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

Conciseness5/5

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

Two sentences, front-loaded with the purpose and the 'before paying' motivation, followed by the enumeration of checks and the negative guarantees. There is no filler; every clause conveys a distinct fact about what is validated or what is not done.

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?

With an output schema present and full schema coverage, the description need not restate return values, and it correctly focuses on what is examined and what is avoided. The only minor gap is how a failing validation surfaces to the caller (a hard error versus warnings in the response); 'list warnings' hints at the latter but does not make it explicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with every parameter including nested turn fields already documented, so the schema does the heavy lifting and the baseline is 3. The description reinforces a few constraints (supports_dialogue=true, cloned-voice limits) but adds no syntax, defaults, or format detail beyond what the schema already provides.

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 ('Check a multi-speaker dialogue request') and then enumerates exactly what the check covers: voice eligibility, cloned-voice limits, markup parsing, warnings, weighted characters, duration, and price. The closing sentence distinguishes it from the actual synthesis path by stating it creates no task and calls no engine, so an agent can separate it from beatra.speech.synthesize_dialogue 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?

The phrase 'before paying for it' gives a clear trigger condition: use this as a pre-flight/dry-run step prior to a paid synthesis call. It does not explicitly name synthesize_dialogue as the follow-up alternative or state exclusions, but the 'before paying' framing makes the intended position in the workflow unambiguous.

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