Skip to main content
Glama

Text to speech

text_to_speech

Turn German (or any) text into spoken audio (mp3). The file is stored privately for this tenant and a short-lived signed URL is returned. Billed per character.

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": {
      "text": "<text>"
    },
    "name": "text_to_speech"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to speak (max 8000 characters)
voiceNoOptional voice: alloy|ash|ballad|coral|echo|fable|onyx|nova|sage|shimmer|verse (default alloy)
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing storage privacy ('stored privately for this tenant'), the return shape ('short-lived signed URL'), and the cost model ('Billed per character') — all things annotations cannot convey. It is consistent with openWorldHint=true and readOnlyHint=false since a file is created but nothing is destroyed. It stops short of quantifying URL lifetime, retention, or what happens at the 8000-character limit.

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 short sentences, front-loaded with the capability, followed by storage/return and then cost. Every sentence carries distinct information with no redundancy.

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 no output schema, the description correctly carries the return-value burden by naming the signed URL, and it adds cost and privacy context. Minor gaps remain on URL expiry and file retention, but nothing that would cause a misinvocation.

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 coverage is 100%, so every parameter including the voice enum list and the super-admin scoping note is already documented in the schema. The description adds only the minor clarification that the text need not be German. Baseline 3 applies.

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 ('Turn ... text into spoken audio (mp3)'), names the output format, and no sibling in the list offers speech synthesis, so the capability is unambiguous. The language hint ('German (or any)') further narrows the intended use.

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 only implied by the capability itself; there is no explicit statement of when to prefer this over any alternative, nor any exclusion or prerequisite. For a self-contained utility tool this is acceptable but leaves the agent to infer context.

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