Skip to main content
Glama

generate_video_audio

Generate or replace audio for a video media item. Supports add/replace audio modes and prompt-driven video-to-audio models.

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>",
      "mediaId": "<mediaId>",
      "modelId": "<modelId>"
    },
    "name": "generate_video_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoPrompt describing the desired audio, music, foley, or ambience
mediaIdYesVideo MediaDocV2 ID to process
modelIdYesVideo-to-audio model ID
videoUrlNoOverride source video URL; otherwise resolves from active media version
audioModeNoWhether generated audio replaces or adds to original audioreplace
extraParamsNoAdditional raw V3 parameters
workspaceIdYesThe workspace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / extraParams / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it never says that replace mode destroys existing audio, whether the call is async/long-running, or what permissions or credits are required. The add-vs-replace distinction hints at destructive behavior but stops short of disclosing its consequences.

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?

Two short sentences, front-loaded with the core action and with no filler. The second sentence partly duplicates what the schema already exposes, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter media-generation tool with no annotations and no output schema, the description omits critical context: expected return value (job handle vs. media), async/long-running behavior, and the effect of replace mode on original audio. It is too thin for the tool's complexity.

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 slightly exceeds it by tying the add/replace modes and prompt-driven video-to-audio model selection to the schema's audioMode and modelId fields. The nested extraParams escape hatch goes unmentioned but is adequately documented in the schema.

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?

States a specific verb and resource: 'Generate or replace audio for a video media item,' which is more precise than the name alone and scopes the operation to video assets. It implicitly separates itself from audio-only siblings like generate_audio, but never names an alternative explicitly.

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?

The 'add/replace audio modes' phrase and the 'video media item' scope imply when this tool applies, but there is no statement of when to prefer it over generate_audio, generate_audio_track, or add_audio_track. No prerequisites (model availability, video state) are given.

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.