Skip to main content
Glama

download_stock_music

Destructive

Downloads a stock music track from a URL into the local music cache, making tracks available for video or audio projects.

Instructions

[Cinematic Engine] Download a stock music track.

Downloads a music file from a URL (e.g., from list_stock_music results) to the local music cache directory.

Args: url: URL to download (download_url from list_stock_music) output: Output directory (default: "music_cache") filename: Output filename (default: derived from URL)

Returns: { "success": True, "data": { "path": "/path/to/downloaded/track.mp3", "size_bytes": 1234567 } }

Example: # Search for music result = list_stock_music(query="upbeat corporate") track = result["data"]["tracks"][0]

# Download it
download_stock_music(url=track["download_url"], filename="background.mp3")

# Use with ffmpeg in shell:
# ffmpeg -i video.mp4 -i music_cache/background.mp3 -filter_complex "[1:a]volume=0.15[bg];[0:a][bg]amix" -c:v copy output.mp4

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": {
      "url": "<url>"
    },
    "name": "download_stock_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
outputNo
filenameNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

Annotations declare destructiveHint=true, readOnlyHint=false, openWorldHint=true, and idempotentHint=false; the description is consistent with a write to disk and adds useful context about the cache directory and default filename derivation. However, it never warns that an existing file at the output path may be overwritten (which is what destructiveHint implies) nor mentions network failure behavior, so the risky behavior is only partially disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The purpose and parameter information are front-loaded and useful, but the Returns block duplicates the existing output schema, and the trailing ffmpeg command is tangential to invoking this tool. The result is longer than needed to select and call it correctly.

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 three-parameter, single-write tool with an output schema, the description covers the source of the URL, the destination location, defaults, and a concrete usage example that shows how the result chains into downstream processing. The one notable omission is overwrite behavior for the target file path.

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 description coverage is 0%, so the description carries the full burden, and it does explain each parameter: url is the download_url from list_stock_music, output defaults to "music_cache", and filename defaults to a name derived from the URL. It adds real meaning beyond the bare schema, though it does not clarify path semantics for output (relative vs absolute).

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 ("Download a stock music track") and immediately constrains the scope to fetching a music file from a URL into the local music cache directory. This clearly distinguishes it from the sibling list_stock_music, which is identified as the source of the URL rather than a downloader.

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 explicitly tells the agent where the URL comes from ("download_url from list_stock_music") and gives a worked two-step example of searching then downloading. It does not state any when-not-to-use conditions or what happens if a file already exists at the target path, so it falls short of full routing guidance.

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