Skip to main content
Glama

Swap music

swap_music

Replaces an existing music item's source track while preserving its timeline position, level and fit settings. The replacement identifies an available project audio asset.

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

Input Schema

NameRequiredDescriptionDefault
idYes
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.6/5.0
Behavior4/5

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

The annotations only declare the mutation and idempotency profile, so the description's statement that timeline position, level, and fit settings survive the swap adds real behavioral value. It still does not say whether the displaced asset is deleted or recoverable, or whether the operation is reversible, but for a non-destructive mutation it covers the main risk.

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?

Two sentences, front-loaded with the action, with no filler. The second sentence is slightly awkwardly worded ('The replacement identifies...'), but it still contributes the asset-source constraint.

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 a three-parameter mutation with no output schema, the description covers what changes and what is retained, yet omits failure modes such as an incompatible or missing asset and says nothing about what the call returns. It is adequate rather than complete.

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 33%, so the description must carry more weight, and it clarifies that the storage_key must identify an already-available project audio asset rather than a library or search result. It leaves 'id' undocumented beyond the implied 'existing music item' link, and does not address how the integer project_id relates to the asset lookup.

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 states a specific verb and object ('Replaces an existing music item's source track') and adds the scope of preservation, so the agent knows this is a substitution, not an add or removal. It does not explicitly differentiate itself from siblings such as add_music, remove_music, or set_music_fit, which keeps it below a 5.

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?

The phrase 'while preserving its timeline position, level and fit settings' implies the scenario calling for this tool, namely changing the track without losing placement or mix work. However, it never states when not to use it, nor names add_music or remove_music as the alternative for insertion or deletion.

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.