Skip to main content
Glama

Add music

add_music

Adds an existing project audio asset as a music track over a program window. Defaults adapt level and ducking to whether speech is present; explicit gain and ducking settings override them. The storage key must identify available media.

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": {
      "storage_key": "<storage_key>",
      "project_id": "<project_id>"
    },
    "name": "add_music"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNo
duckNo
loopNo
startNo
gain_dbNo
purposeNoWhy this music belongs in this program/window, including the story turn or energy role it supports.
offset_sNo
fade_in_sNo
fade_out_sNo
project_idYesExplicit project identifier for this request. The connection's navigation pointer does not select the target.
storage_keyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Required immutable scope for this call. Copy the id from list_projects/open_project/project_state; the active-project pointer is never used to guess."New value: +"Explicit project identifier for this request. The connection's navigation pointer does not select the target."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safety profile (mutating, non-destructive, non-idempotent), so the description's real contribution is the auto-ducking/level behavior keyed to speech presence and the override rule for explicit gain and ducking. That is genuine context an agent cannot get from the structured fields, though it says nothing about what happens on a key collision or what the call returns.

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, no filler, with the core action front-loaded and the override rule and media-availability constraint compressed into single clauses. Nothing repeats the schema or the title.

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

Completeness3/5

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

For an 11-parameter mutation tool with no output schema and thin schema descriptions, the definition leaves meaningful gaps: default window when start/end are omitted, loop and fade behavior, whether an existing track is replaced, and the return value. It covers the intent and the audio-mixing defaults but not the temporal parameter semantics.

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 coverage is only 18%, so the description must carry meaning and it only partially does: it clarifies gain_db and duck override the speech-derived defaults and constrains storage_key to available media. The eight remaining parameters (start, end, offset_s, loop, fade_in_s, fade_out_s) get no explanation, so an agent must guess defaults and units.

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 first sentence gives a specific verb, resource, and target scope: adding an existing project audio asset as a music track over a program window. 'Existing project audio asset' implicitly separates it from add_library_music and add_stock_media, but that distinction is never made explicit the way a 5 would require.

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?

Usage is only implied: the storage key constraint signals the asset must already be in the project, which nudges the agent away from library or stock tools. There is no explicit when-to-use versus add_library_music, swap_music, or add_sfx, and no stated prerequisite that the program window must exist first.

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.