Skip to main content
Glama

Generate audio (ElevenLabs)

grok_generate_audio

Turn a stored transcript (transcript_id), pasted text, or ready-made script turns into a generated podcast episode via ElevenLabs. Paid, metered generation that runs in the background: returns immediately with the job id, call grok_stitch with it for status and the final audio path.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "grok_generate_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoRaw article/transcript text to adapt, used when transcript_id is absent.
titleNoEpisode title override.
turnsNoReady-made script turns [{speaker:"HOST"|"NATALIE", text}], skips AI script writing.
with_natalieNoTwo-voice co-host format (default single-host).
transcript_idNopodcast_transcripts id (uuid) from grok_upload_transcript.

Output Schema

NameRequiredDescriptionDefault
okNo
errorNoPresent only when ok is false.
job_idNo
run_idNo
statusNo
episode_idNo
credits_estimateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"Raw article/transcript text to adapt — used when transcript_id is absent."New value: +"Raw article/transcript text to adapt, used when transcript_id is absent."
    • changedInput schema / properties / turns / description
      Previous value: -"Ready-made script turns [{speaker:\"HOST\"|\"NATALIE\", text}] — skips AI script writing."New value: +"Ready-made script turns [{speaker:\"HOST\"|\"NATALIE\", text}], skips AI script writing."
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds important behavior beyond annotations: paid/metered generation, asynchronous background execution, immediate job-id return, and the required follow-up call to grok_stitch. Annotations already cover non-readonly, open-world, non-idempotent, non-destructive safety traits, but the description does not discuss cancellation, auth, or failure 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?

Two tightly written sentences with the core operation front-loaded, followed by the billing/async constraint and the required next step. No filler or repeated information.

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?

Covers the essential call behavior for an asynchronous paid generation tool: accepted input modes, metered background execution, job-id return, and the grok_stitch follow-up. Since an output schema exists, return-value details need not be repeated, though the two-voice flag and cost/cancellation specifics are only in the schema or annotations.

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 the schema already documents all five parameters including title, with_natalie, turns, text, and transcript_id. The description names transcript_id, text, and turns as input alternatives, but omits title and with_natalie and adds little semantic meaning beyond 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?

States a specific verb and resource: "Turn a stored transcript (transcript_id), pasted text, or ready-made script turns into a generated podcast episode via ElevenLabs." The accepted input forms and podcast-episode output make it distinguishable from sibling generation tools such as grok_generate_video.

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?

Gives clear operational guidance: generation is paid, metered, and background-based, and the returned job id should be passed to grok_stitch for status and the final audio path. It does not explicitly state when not to use it or compare it with grok_generate_video, so it falls short of full alternative 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