Skip to main content
Glama

generate_speech

Convert text to speech with a selected voice_id (see list_voices). Costs ceil(characters / 20) credits, minimum 1. Speech renders synchronously: the result usually returns immediately with output_urls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
speedNo
model_idNo
voice_idYes
stabilityNo
idempotency_keyNoOptional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again.
similarity_boostNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again.",
      +  "pattern": "^[\\x21-\\x7e]{1,200}$",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the credit formula (ceil(characters/20), minimum 1) and the synchronous rendering behavior with an output_urls result, which matters for an agent planning retries or cost. It hedges with 'usually returns immediately', implying possible latency, but doesn't explain what happens in the slow case despite the idempotency_key parameter existing for retry handling.

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?

Three tight sentences, front-loaded with the core conversion action, then cost, then execution behavior. No filler and nothing redundant with the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a paid, 7-parameter generation tool with no output schema, the description usefully covers cost and return shape, but it leaves most tuning parameters unexplained and doesn't clarify what happens when rendering isn't immediate. Adequate but with clear gaps.

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

Parameters2/5

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

Schema description coverage is only 14% (just idempotency_key), so the description must carry the load for 7 parameters. It explains voice_id's sourcing via list_voices but says nothing about text, speed, model_id, stability, or similarity_boost, leaving five parameters undocumented in both places.

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+resource ('Convert text to speech') with the required input (voice_id) called out, which cleanly distinguishes it from siblings like generate_image, generate_music, and generate_sound_effect. An agent can pick this tool 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the purpose, and it routes the agent to the sibling list_voices for picking a voice_id, which is useful. However, it never states when to prefer this over alternatives such as generate_sound_effect, nor any preconditions or exclusions.

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.