Skip to main content
Glama

Add sound to a video

add_sound

Make matching sound effects and ambience for a (silent) video, like footsteps, rain or a crowd. Uses site credits with OAuth or USD with an API key; the tool quotes the price. Returns an audio file; to put it on the video, call compose_video with the video as the clip and this result as sound_url.

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": {
      "video_url": "<video_url>"
    },
    "name": "add_sound"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoOptional: the sounds you want, for example: rain on a window, a cat purring. Leave empty to match what is on screen.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
no_musicNoKeep music and speech out of the result (default true).
video_urlYesThe video to add sound to: a popnow:// link from an earlier result, or a public https link.
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.
duration_secondsNoHow many seconds of sound, 1 to 30. Default 8 (match it to the video's length).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / no_music / type
      Previous value: -[
      -  "null",
      -  "boolean"
      -]New value: +"boolean"
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / currency
      Added value: +{
      +  "description": "Billing unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).",
      +  "type": "string"
      +}
    • changedInput schema / properties / max_credits / description
      Previous value: -"The most credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."New value: +"OAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price."
    • addedInput schema / properties / max_usd
      Added value: +{
      +  "description": "API key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (which state openWorldHint=true, idempotentHint=false, destructiveHint=false), the description discloses the cost model (site credits with OAuth, USD with API key), that a price quote precedes spend, and that the return value is an audio file rather than a modified video. That is exactly the extra context annotations cannot carry. It omits failure modes and what happens to the video on error.

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, front-loaded with the capability, then billing, then the return value and next step. The illustrative examples (footsteps, rain, crowd) directly clarify the ambiguous word 'ambience' and earn their place. No filler or restatement of the title.

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 an 8-parameter generation tool with no output schema, the description covers the essentials: what it produces (an audio file, not a composite), how it is billed, and how to finish the job with compose_video. Remaining gaps — duration limits and the boundary with create_sound_effects — are covered by the schema or left unaddressed.

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 description coverage is 100%, so the baseline is 3. The description adds some framing to the budget parameters by explaining that the tool quotes a price before max_usd or max_credits is set, which gives the confirmation flow meaning. It adds nothing further about duration, prompt behavior, or no_music beyond what the schema already states.

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: 'Make matching sound effects and ambience for a (silent) video', with concrete examples (footsteps, rain, crowd) that bound what kind of output to expect. It is clearly a distinct capability from compose_video, which it names as the downstream step. It does not differentiate itself from the sibling create_sound_effects, which an agent might reasonably see as an alternative.

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 and actionable: use on a silent video, then hand the result to compose_video as sound_url, which prevents the common mistake of expecting the tool to modify the video in place. Billing routing (OAuth credits vs API key USD, price quoted first, production budget via production_id) is spelled out. It stops short of explicit when-not guidance or routing against create_sound_effects.

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.