Skip to main content
Glama

add_audio

Place an audio file on a chosen or new track at a specific bar, detect its BPM and key, and optionally adopt its tempo and key for building songs.

Instructions

Put an audio file (wav, mp3, flac, ogg, aiff; m4a/video with ffmpeg) on an audio track (new if track is omitted) at bar. BPM and key are detected. offset = seconds to skip in the file; bars trims it. adopt_tempo=true sets the song BPM (and key if empty) to the file's: to build on top of a beat.

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": "add_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
barNo
barsNo
nameNo
pathNo
assetNo
trackNo
offsetNo
projectNo
adopt_tempoNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose real side effects: BPM and key are auto-detected, a track is created when omitted, and adopt_tempo mutates the song BPM (and key when empty). It says nothing about failure modes, whether the file must already exist on disk, or what is returned, which matters for a mutation tool with zero annotation coverage.

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?

One tight paragraph, front-loaded with the core action, then format list, then parameter semantics in decreasing order of importance. Every clause carries information; even the terse 'bars trims it' is compact rather than vague in context.

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 9-parameter mutation tool with no annotations and no output schema, the description covers the operationally important behavior (placement, trimming, tempo adoption, track creation). The remaining gap is the undefined trio name/asset/project and the absence of any failure or return-value context, which the missing output schema does not fill in.

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 0% across 9 parameters, so the description must compensate and largely does: it explains bar placement, offset ('seconds to skip in the file'), bars as a trim, track omission creating a new track, and adopt_tempo's effect on song BPM/key. It leaves name, asset, and project undefined, and the asset-vs-path distinction (file path vs asset identifier) remains ambiguous.

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?

States a concrete verb and resource ('Put an audio file ... on an audio track ... at bar') plus the accepted formats and the implicit new-track behavior. An agent can picture the operation precisely. It stops short of naming how it differs from the sibling import_audio, which likely does something similar.

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 implied through the parameter narrative: 'adopt_tempo=true ... to build on top of a beat' tells the agent when that flag is appropriate, and 'new if track is omitted' tells it when a track is created. There is no explicit statement of when to prefer this over import_audio or analyze_audio, and no prerequisites or exclusions.

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