Skip to main content
Glama

Gerar narração do passo

generate_narration

Gera a narração falada do passo (voz do GuiaFlow, MP3 mono 64 kbps, 24 kHz) e grava como áudio do passo; o passo passa a durar pelo menos a narração. Texto: text, ou o roteiro (narrationScript) do passo, ou título + texto. Usa a cota mensal de áudio do Pro (30 min/mês). Passo com vídeo (YouTube/Vimeo) não tem narração: responde 400 (o som vem do vídeo).

Input Schema

NameRequiredDescriptionDefault
langNoIdioma-alvo do tour (ex.: en, es-MX) para gerar a narração traduzida desse idioma, com a voz configurada nele. Reaproveita o áudio (sem cobrar) se o texto e a voz não mudaram.
textNoTexto a narrar (vira o roteiro do passo).
voiceNoid (UUID) de voz Cartesia (opcional; padrão: a voz do tour para o idioma, senão a voz nativa padrão do idioma). Precisa ser do mesmo idioma.
stepIdYes
tourIdYesid do tour (de create_tour ou list_tours).
languageNoIdioma da narração de origem (opcional; padrão: o idioma de narração do tour, senão pt). Código Cartesia (pt, en, es, fr, de…). Voz nativa padrão: pt Isabella, en Lauren, es Ximena.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Idioma-alvo do tour (ex.: en, es-MX) para gerar a narração traduzida desse idioma, com a voz configurada nele. Reaproveita o áudio (sem cobrar) se o texto e a voz não mudaram.",
      +  "type": "string"
      +}
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Idioma da narração de origem (opcional; padrão: o idioma de narração do tour, senão pt). Código Cartesia (pt, en, es, fr, de…). Voz nativa padrão: pt Isabella, en Lauren, es Ximena.",
      +  "type": "string"
      +}
    • changedInput schema / properties / voice / description
      Previous value: -"id de voz Cartesia (opcional; padrão: a voz do tour ou Isabella)."New value: +"id (UUID) de voz Cartesia (opcional; padrão: a voz do tour para o idioma, senão a voz nativa padrão do idioma). Precisa ser do mesmo idioma."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations only provide the generic safety profile (not read-only, not destructive, not idempotent, open world). The description goes well beyond them, disclosing that the generated audio is written into the step, that step duration is extended, that the monthly Pro audio quota is consumed, and that video steps return 400. It does not cover authentication requirements or concurrency behavior, which is the only notable gap.

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?

The description is a single dense paragraph. It places the most important information first (what is generated and where the output goes), then the quota, then failure modes; almost every clause carries new information for an agent.

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?

For a mutating tool with no output schema, the description covers the important consequences: audio persistence, step duration change, quota consumption, caching, and the 400 error path. The only gap is a precise description of the success response, which matters less because the tool has no output schema.

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 description coverage is 83%, so the baseline would be 3. The description adds value beyond the schema by explaining the text resolution precedence among the text, narrationScript, and title+text sources, which the schema does not spell out; the lang parameter's caching behavior is covered inside the schema.

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 states a specific verb and resource (generates spoken narration for a step), the output format (MP3 mono 64 kbps, 24 kHz), and the side effect (audio is attached to the step and the step's duration grows to fit it). That makes it clearly distinguishable from the sibling generate_step_text, which produces text rather than TTS audio.

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?

Usage context is clear: it draws on the monthly Pro audio quota of 30 min/month, and steps containing YouTube/Vimeo video cannot be narrated and return 400 with a stated reason. It does not explicitly name which sibling to use instead (for example generate_step_text or translate_tour), so it stops short of full explicit routing.

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