Skip to main content
Glama

Generate a voiceover

generate_voiceover

Costs per 1,000 characters of the text (at least 1 cent), charged only after confirm_cents matches the quote: starts one narration of the text.

Args: text: 1-100000 chars. voice: a voice name from list_voices. model: a tts model id from list_models (optional; Premium voices need their own model and English text). confirm_cents: the price the user agreed to (from tool_cost_estimate); 0 with quote_only. idempotency_key: unique per purchase; a retry with the same key never buys twice. Idempotency is keyed on (this token, this tool, idempotency_key), not on the arguments: reusing an idempotency_key with different arguments returns the first result. quote_only: true returns the price and buys nothing.

Returns: {ok, job_id, kind:'tts', poll_after_s, cents}: poll with wait_for_job (the finished job has audio_url) A job that fails is refunded to the balance, but it still counts toward this token's daily limit until midnight UTC.

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>",
      "voice": "<voice>",
      "confirm_cents": "<confirm_cents>"
    },
    "name": "generate_voiceover"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
modelNo
voiceYes
quote_onlyNotrue: return the price and buy nothing.
confirm_centsYesThe price in cents the user agreed to, from tool_cost_estimate or a quote_only call. Pass 0 with quote_only.
idempotency_keyNoAny unique string per purchase; a retry with the same key never buys twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries the real burden and does so richly: per-1,000-character pricing with a 1-cent floor, charging gated on confirm_cents matching the quote, idempotency keyed on (token, tool, key) rather than arguments so a reused key with different args returns the first result, and refunds on failure that still consume the daily limit until midnight UTC. None of that is inferable from the schema or annotations.

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 Args/Returns structure is easy to scan and the monetary constraint is front-loaded, but the opening sentence packs the price rule and the action into one clause, slightly obscuring the core purpose. Density is justified here since every clause carries an operational fact.

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 paid, non-idempotent-by-arguments generation tool with no output schema, the description supplies the return shape ({ok, job_id, kind, poll_after_s, cents}), the follow-up tool (wait_for_job, with audio_url on the finished job), and the failure/refund consequence. Nothing an agent needs to call this safely is absent.

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

Parameters5/5

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

With 50% schema description coverage, the description compensates by annotating all six parameters beyond the schema: text length bounds, voice sourced from list_voices, model optional plus the Premium-voice/English constraint, confirm_cents as the agreed quote with 0 for quote_only, idempotency_key uniqueness and replay semantics, and quote_only as a price-only mode. The idempotency explanation in particular adds meaning the schema does not.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ("starts one narration of the text") on a specific resource, and the cost framing plus the list_voices/list_models prerequisites make it unambiguous that this is a paid text-to-speech render rather than an image, music, or clip generation call. It does not explicitly name a sibling it is not, so it falls just short of 5.

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?

It gives a clear operating context: voice comes from list_voices, model is optional and required for Premium voices, confirm_cents comes from tool_cost_estimate, and quote_only=true is an explicit no-purchase alternative mode. What is missing is any statement of when not to use it (e.g. unrelated text, non-English with Premium voices is only mentioned in passing under model).

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