Skip to main content
Glama

add_sound

Add music, voice-over, or sound effects to a composition and mix them into the rendered video, with control over start time, file offset, duration, volume, and fades.

Instructions

Put music, a voice-over or an effect under a composition (meta.sounds); it is mixed in when a video renders. src is a sound file under media/ (bring one in with import_file first); at = video seconds it starts; in = seconds into the file; dur = how long it plays (default: to the file's end or the video's); volume (1 = as recorded); fadeIn and fadeOut in seconds. A video layer's own sound is not played: add its file here to hear it.

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

Input Schema

NameRequiredDescriptionDefault
atNo
inNo
durNo
srcYes
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
fadeInNo
volumeNo
fadeOutNo
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.
compositionYesComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the safety profile (not read-only, not destructive, not idempotent, closed-world), so the description carries the real behavioral burden and does so: mixing happens at render, volume 1 means as-recorded, and dur defaults to the file's end or the video's. It does not say whether a call appends a new sound layer or replaces an existing one, which is the main remaining gap for a 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense paragraph that front-loads the purpose and then walks the parameters in a natural order, with no filler sentences. It is slightly run-on, but every clause carries information an agent needs.

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 12-parameter mutation tool with no output schema, the definition covers purpose, prerequisite, timing semantics, and the audio-specific parameters well enough to call it correctly. What is missing is the append-versus-replace behavior and any failure mode when src is absent from media/.

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 42%, and the description compensates by explaining the seven media parameters that have no schema descriptions: src's location, at as video seconds, in as offset into the file, dur's default, volume's scale, and fadeIn/fadeOut units. The remaining five parameters (basis, message, feedback, confidence, composition) are already documented in the schema, so nothing important is left unexplained.

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?

The description opens with a specific verb and resource: 'Put music, a voice-over or an effect under a composition (meta.sounds)', and it names the effect at render time. It also distinguishes itself from import_file by making the import a stated prerequisite, so an agent can tell the two apart without opening either schema.

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?

It gives a clear precondition ('src is a sound file under media/ (bring one in with import_file first)') and a non-obvious routing rule: a video layer's own sound is not played, so its file must be added here. There is no explicit statement of when not to use it, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools