Skip to main content
Glama
libsonare-mcp

libsonare-mcp

Official
by libraz

Create a project from audio and MIDI files

project_create
Destructive

Creates a .sonare.json single-song project workspace from audio or MIDI inputs, arranging overlay/sequence tracks and optionally analyzing tempo, meter, key, chords, or sections.

Instructions

Creates a project file (.sonare.json): the workspace that carries one song between tools. Each audio input becomes an audio track, each .mid input its tracks; 'overlay' starts all inputs together, 'sequence' plays them in turn with an optional crossfade. 'analyze' derives tempo, meter, key, chords and sections from an audio input into the project's tempo map and annotations, and the response lists the tempo candidates. Without 'analyze' the tempo map and meter come from the first .mid input; every .mid input adds its tracks under the project's maps. Use it as the first step of arranging, mixing or rendering a song. Do not use it to edit an existing project (project_edit). Example: {"inputs": [{"path": "song.wav"}], "analyze": ["tempo", "key", "chords"]}.

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": {
      "inputs": "<inputs>"
    },
    "name": "project_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNo'concise' returns the summary and the most useful fields; 'full' returns all.concise
inputsYes1-16 audio or .mid files.
layoutNo'overlay' starts every input at the project start; 'sequence' plays them one after another, each on its own track.overlay
outputNoProject file to write, ending in .sonare.json. Default: '<first input stem>.project.sonare.json' in the output directory.
analyzeNoWhat to derive from an audio input: tempo, meter, key, chords, sections.
dry_runNoBuild the project and report; write nothing.
overwriteNoReplace an existing 'output' file.
tempo_bpmNoA constant tempo for the project; excludes 'tempo' in analyze.
sample_rateNoProject sample rate in Hz. Default: the first audio input's, else 48000.
analyze_inputNo0-based index of the audio input to analyze. Default: the first audio input.
crossfade_secNolayout 'sequence' only: overlap of neighboring inputs in seconds, shorter than the shorter of the two.
tempo_candidateNoWith 'tempo' in analyze: 0 primary, 1 half, 2 double tempo (default 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, but the description adds real behavior: how inputs map to tracks, that 'overlay' starts everything together while 'sequence' plays in turn with optional crossfade, that 'analyze' populates the tempo map and annotations and returns tempo candidates, and that the first .mid supplies maps when analyze is absent. It does not discuss the overwrite/dry_run safety behavior, which matters for a destructive tool, so it falls short of a 5.

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?

Front-loaded with the core definition, then layout, then analysis semantics, then usage routing, ending with a concrete example. It is dense but each sentence carries information; the share of detail on MIDI/analyze interplay makes it slightly heavy for a single unbroken paragraph.

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 12-parameter destructive creation tool with no output schema, the description covers input mapping, layout modes, analysis derivation, defaults for tempo source, and the response's tempo candidates. It leaves overwrite/dry_run and sample_rate behavior to the schema, which is acceptable given 100% schema coverage, though the destructive-write path deserves a word.

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, but the description goes beyond the schema by explaining the interplay between parameters: analyze derives values into the project's tempo map, omitting analyze sources mapping from the first .mid, and each .mid contributes its own tracks beneath the project maps. The worked example reinforces the inputs/analyze combination. Minor residual gap: tempo_bpm's exclusion of 'tempo' is left entirely to 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 specific verb and resource ('Creates a project file (.sonare.json)') and immediately frames the resource's role as 'the workspace that carries one song between tools'. It explicitly distinguishes itself from project_edit, so an agent can route correctly without opening either schema.

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?

'Use it as the first step of arranging, mixing or rendering a song' gives positive when-to-use guidance, and 'Do not use it to edit an existing project (project_edit)' names the exclusion and the alternative tool. Both directions are covered explicitly.

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