Skip to main content
Glama

Generate audio

generate_audio

Make a voiceover (kind speech: says text word for word, in a voice from list_models kind=audio or a workspace character's voice), a music track (kind music) or a sound effect (kind sfx) from a description. For a song with words (a children's song, a jingle, lyrics in the user's script), use kind music with model lyria-3-pro and put the lyrics and style in text: it sings them. The default music model is instrumental and picks its own length; for a video, omit duration_seconds, because combine_clips loops and fades music to the video's length. Waits for the file, usually 10-60 seconds, and returns it in the conversation; if it is still rendering, the reply carries a job_id for check_generation. Spends the workspace's Masonry credits; list_models with kind=audio shows the models and their prices. Omit model for Masonry's recommended model for the kind.

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

Input Schema

NameRequiredDescriptionDefault
kindYesWhat to make: speech (a voiceover that says text word for word), music (an instrumental track from a description) or sfx (a sound effect or ambience from a description).
textYesspeech: the exact words to say, about 2.5 spoken words per second; short audio tags of up to 4 words like [whispers] or [laughs] are performed; a voice, accent or pace description is refused here: the accent, gender and age pick the voice, tone and pace go in style. music and sfx: a description of the sound, e.g. 'upbeat lofi, warm keys, soft drums' or 'a quick whoosh for a cut'.
modelNoOptional audio model key (list_models with kind=audio). Defaults to Masonry's recommended model for the kind.
styleNospeech only, regional voices: how the line is delivered: tone, emotion and pace, e.g. 'warm, calm bedtime storytelling'. Accent, gender and age come from the voice.
voiceNospeech only: a voice key from list_models with kind=audio (e.g. warm-female-us), or a regional voice for an accent (e.g. castilian-male-warm, mexican-female-warm, brazilian-male-narrator), which runs on its own model automatically. Omit for the character's saved voice, else the default voice.
languageNospeech only: ISO 639-1 code to enforce, e.g. en or es; a regional voice speaks its own language. Omit to detect it from the text.
characterNospeech only: the workspace character who says the line (see list_characters); uses its saved voice unless voice is set.
skill_slugNospeech with character only: the Masonry template (list_skills) whose cast the character is from. A cast member that is not yet in the workspace is added on first use, free, with its voice.
duration_secondsNomusic and sfx only: length in seconds, within the model's range (list_models with kind=audio). Omit for the model's default; some music models choose their own length and refuse it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare the generic non-read-only, non-idempotent, non-destructive profile, and the description goes well beyond that: it states the call blocks for the file (usually 10-60s), returns it in the conversation, falls back to a job_id for check_generation, and spends workspace Masonry credits. The credit spend and the async fallback are exactly the kind of operational facts annotations cannot convey. It stops short of saying whether a failed or repeated generation is charged again, which keeps it off a 5.

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?

Purpose is front-loaded in the first clause and the rest is dense, task-relevant guidance rather than padding. A few phrases duplicate the schema almost verbatim ("says `text` word for word"), and the long multi-clause sentences cost some scannability, so it is strong but not maximally tight.

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 9-parameter generation tool with no output schema, the description covers the missing pieces an agent needs: what comes back, how long it takes, what to do on a pending render, and what the call costs. Nothing required to invoke it correctly or interpret the result appears to be 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?

Schema coverage is 100%, so the baseline would be 3, but the description adds real meaning the schema does not: lyrics and style belong in `text` for a sung track, `duration_seconds` must be omitted for video work, and `model` should be omitted to get Masonry's recommended model. These are decision rules about parameter combinations, not restatements of field types.

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?

Opens with a specific verb and resource ("Make a voiceover... a music track... a sound effect") and immediately splits the three modes by `kind`, so an agent can tell this apart from generate_image/generate_video without opening the schema. The parenthetical distinguishing speech (verbatim text) from music/sfx (description) makes the resource semantics unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit routing rules: use kind music with lyria-3-pro for sung content, omit duration_seconds for video because combine_clips handles length, and use check_generation when a job_id comes back. It also names the sibling lookups (list_models kind=audio, list_characters) that feed required inputs, so the agent knows both when to use this tool and what to call before it.

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