Skip to main content
Glama

generate_audio_track

Generate AI audio and place it on the edit timeline. Match sourceDuration and modelSettings to the approved quote, pass maxCostUsd and a stable idempotencyKey. Retries reuse the media and original attachment, preserving subsequent timeline edits.

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": {
      "workspaceId": "<workspaceId>",
      "editId": "<editId>",
      "prompt": "<prompt>"
    },
    "name": "generate_audio_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoAudio model ID
editIdYesThe edit ID
promptYesTTS/music/SFX prompt
volumeNoInitial volume
voiceIdNoVoice ID for TTS models
durationNoPlaceholder timeline duration until generation metadata updates
startTimeNoTimeline start time in seconds
approvalIdNoCombined production approval ID returned by set_proposal_status.
fadeInTimeNoFade-in length in seconds
maxCostUsdNoMaximum charge for each output. Checked against authoritative pricing before generation.
autoChannelNoPick the first non-overlapping channel automatically
fadeOutTimeNoFade-out length in seconds
stylePromptNoDelivery and accent direction for supported speech models
workspaceIdYesThe workspace ID
approvalJobIdNoExact production jobId covered by that combined approval.
modelSettingsNoModel-specific controls using keys and options from get_model_catalog inputConstraints.slots or variantSelector.
idempotencyKeyNoStable request key. Retries with the same key reuse the existing output and do not start another paid generation.
pinnedToShotIdNoOptional shot ID to pin this audio to
sourceDurationNoGenerated audio source duration in seconds, separate from timeline duration. Match the approved quote.
relativeStartTimeNoOffset in seconds from pinned shot start

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / modelSettings / additionalProperties / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]
    • addedInput schema / properties / modelSettings / additionalProperties / type
      Added value: +[
      +  "string",
      +  "number",
      +  "boolean"
      +]
    • addedInput schema / properties / modelSettings / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / approvalId
      Added value: +{
      +  "description": "Combined production approval ID returned by set_proposal_status.",
      +  "type": "string"
      +}
    • addedInput schema / properties / approvalJobId
      Added value: +{
      +  "description": "Exact production jobId covered by that combined approval.",
      +  "type": "string"
      +}
    • addedInput schema / properties / idempotencyKey
      Added value: +{
      +  "description": "Stable request key. Retries with the same key reuse the existing output and do not start another paid generation.",
      +  "maxLength": 250,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / maxCostUsd
      Added value: +{
      +  "description": "Maximum charge for each output. Checked against authoritative pricing before generation.",
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / modelSettings
      Added value: +{
      +  "additionalProperties": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "boolean"
      +      }
      +    ]
      +  },
      +  "description": "Model-specific controls using keys and options from get_model_catalog inputConstraints.slots or variantSelector.",
      +  "type": "object"
      +}
    • addedInput schema / properties / sourceDuration
      Added value: +{
      +  "description": "Generated audio source duration in seconds, separate from timeline duration. Match the approved quote.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 3600,
      +  "type": "number"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose non-obvious behavior: cost is capped by maxCostUsd, retries with the same idempotencyKey reuse existing media rather than starting another paid generation, and retries preserve subsequent timeline edits. It omits failure modes (missing/invalid approval), whether existing audio at the position is replaced, and permission requirements, which are meaningful gaps for a 20-parameter mutation tool.

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 sentences, each front-loaded and non-redundant: purpose, then parameter/cost discipline, then retry semantics. Nothing repeats the schema verbatim and no sentence could be dropped without losing 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?

For a 20-parameter tool with no annotations and no output schema, the description covers purpose, the paid-generation cost contract, approval coupling, and retry behavior. What remains thin is the placement side of the operation, i.e. what happens to existing audio and what a successful call returns.

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 coverage is 100%, so the baseline is 3; the description earns above that by adding cross-parameter constraints the schema cannot express, namely that sourceDuration and modelSettings must be reconciled against an approved quote and that idempotencyKey must be stable across retries. It still leaves the approvalId/approvalJobId pairing and autoChannel behavior to the schema alone.

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 opens with a specific verb and resource ('Generate AI audio') plus a scope detail ('place it on the edit timeline') that separates it from a pure generation call. It never names a sibling such as generate_audio or add_audio_track, so the agent must infer the boundary between generating new audio versus attaching existing media.

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?

'Match sourceDuration and modelSettings to the approved quote' implies an approval must exist first, which is real usage context. However, there is no explicit when-to-use/when-not statement and no routing to alternatives like generate_audio or add_audio_track, so selection guidance is only implied.

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.