Skip to main content
Glama

Video to Music

video_to_music

Write a soundtrack for a video from the video itself, with ElevenLabs Video to Music: it watches the cuts, pace and mood and scores them. Use it when the customer asks for music made for their video ("write a soundtrack for this", "score my clip"). When they bring their own song (for example from Suno), use that song instead and do not call this. Pass the video in video_url (the file id or name from this chat, or an https link), or video_id for a video made in Switch (its job id from list_my_videos; up to 10 videos in video_urls, all together up to 200 MB and 10 minutes). Optional: description (the music in words, up to 4100 characters), tags (up to 10 styles, like "cinematic", "lofi"), add_sound_effects (sound effect cues from the picture), use_video_sound_as_reference (its genre, tempo, instruments, mood and arc from the video's own sound), separate_tracks (the music and the effects as two files), video_seconds (the video's length, for the hold). HOUSE RULE: only make music when the customer asked for music. Billed like generate_music, per 10 seconds of the track (a token quote applies). Returns audio_url, duration_seconds and generation_id, and effects_track with separate_tracks. It does not put the music on the video: add_sound_to_video or the Editor does that.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "video_to_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional styles, up to 10.
model_idNoOptional ElevenLabs model id; leave out for their default.
video_idNoA video made in Switch, by its job id (list_my_videos, get_video_status); its stored file is used.
video_urlNoThe video in this chat by its file id or name, or an https link., or the asset_id upload_reference_asset gave for a video you added.
video_urlsNoOptional, several videos scored as one, in order (up to 10).
descriptionNoOptional. The music in plain words: genre, mood, instruments, how it builds.
video_secondsNoOptional. The video's length in seconds, so the right amount is held before it starts.
separate_tracksNoOptional. true returns the music and the sound effects as two files.
add_sound_effectsNoOptional. true adds sound effect cues taken from the picture.
use_video_sound_as_referenceNoOptional. true takes the genre, tempo, instruments, mood and arc from the video's own sound.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / video_url / description
      Previous value: -"The video in this chat by its file id or name, or an https link."New value: +"The video in this chat by its file id or name, or an https link., or the asset_id upload_reference_asset gave for a video you added."
  2. Changed1 schema field changed
    • addedInput schema / properties / video_id
      Added value: +{
      +  "description": "A video made in Switch, by its job id (list_my_videos, get_video_status); its stored file is used.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare non-read-only, non-destructive, open-world; the description adds the billing model (per 10 seconds of track, token quote), the size/duration caps, and the crucial scope limit that the music is not attached to the video. It also names the return fields, which matters since there is no output schema.

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 and the routing rule are front-loaded, and nearly every clause carries actionable information. It is dense and heavily parenthesized, reading as one long block, which slightly hurts scannability but not correctness.

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 10-parameter tool with no output schema, the description covers inputs, cost, limits, return values (audio_url, duration_seconds, generation_id, effects_track), and the downstream step. An agent can call it and interpret the result without further context.

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 nonetheless adds limits not in the schema (4100 characters for description, 200 MB and 10 minutes combined, up to 10 tags) and clarifies that video_url accepts a file id, name, https link or uploaded asset. It does not explain model_id, but that parameter is already documented in the schema.

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?

States a concrete verb and resource ('Write a soundtrack for a video from the video itself') and explains the mechanism (it watches cuts, pace and mood). It is clearly separable from generate_music and from add_sound_to_video, which the description explicitly names as the follow-up step.

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 positive triggers ('write a soundtrack for this', 'score my clip'), an explicit exclusion (customer brings their own Suno song — use that song instead and do not call this), and a house rule limiting calls to explicit music requests. Little is left to inference.

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