Skip to main content
Glama
io.github.AudialAI/audial-mcp

io.github.AudialAI/audial-mcp

Official

Generate a sample pack

generate_samples

Extract one-shot drum hits and loops from a finished track to build a sample pack. Reuse an existing analysis or pass a local audio file to run analysis, stems, and pack generation in one job.

Instructions

Extract a sample pack (one-shots and loops) from a track.

Use when the user wants drum hits or loops taken from a finished track. With the analysis_id from segment, the pack is built from that analysis's sections and the stems Audial made for it: nothing is uploaded and it is included in the analysis's run (right after a new analysis it waits a few minutes for the stems). With file_path it runs the sample-pack pipeline: prepares the track (analysis and stems together), then builds the pack; one call, counted as one run, each step reported as it starts and finishes. If that call times out the job keeps running: pipeline_status finds it. Samples go to a new results folder.

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

Input Schema

NameRequiredDescriptionDefault
genreNoGenre hint.
job_typeNoSample pack job type accepted by Audial (default engine choice when omitted).
file_pathNoFull path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded. Give this or analysis_id.
componentsNoWhich components to sample, e.g. ['drums', 'bass'].
analysis_idNoThe analysis_id a segment result returned (in its metadata and summary). Reuses that analysis: nothing is uploaded and it does not count as another run. Give this or file_path.

Output Schema

NameRequiredDescriptionDefault
toolYes
filesYes
summaryYes
metadataYes
output_dirYes
execution_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.7.0
    • addedInput schema / properties / analysis_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The analysis_id a segment result returned (in its metadata and summary). Reuses that analysis: nothing is uploaded and it does not count as another run. Give this or file_path.",
      +  "title": "Analysis Id"
      +}
    • addedInput schema / properties / file_path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / file_path / default
      Added value: +null
    • changedInput schema / properties / file_path / description
      Previous value: -"Full path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded."New value: +"Full path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded. Give this or analysis_id."
    • removedInput schema / properties / file_path / type
      Removed value: -"string"
    • removedInput schema / required
      Removed value: -[
      -  "file_path"
      -]
  2. First observedv0.1.1

TDQS

A4.7/5.0
Behavior4/5

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

Goes well past the annotations (readOnly=false, openWorld=true, idempotent=false) by disclosing that analysis_id reuses the analysis, uploads nothing, and costs no extra run, whereas file_path is counted as one run and can time out with the job continuing in the background. It also states that a fresh analysis waits a few minutes for stems to be ready and that output lands in a new results folder. The only gap is that it does not say whether re-running with the same inputs overwrites an existing pack, which matters given idempotentHint=false.

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?

Purpose is front-loaded in one sentence, the usage condition follows, and the two input modes are covered in compact parallel clauses. Every sentence carries operational information (run accounting, timeout behavior, output location) with no filler.

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

Completeness5/5

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

For a five-parameter generation tool with a full schema and an output schema, the description covers everything an agent needs: when to pick it, which input mode to use, the cost/upload consequences of each, latency expectations, and the timeout escape hatch. Return values are covered by the output schema plus the one-line note about the results folder.

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 adds real meaning the schema does not: analysis_id's provenance ('the analysis_id from segment'), the fact that using it skips upload and run accounting, and that file_path triggers the combined analysis+stem+pack pipeline. The genre, job_type, and components parameters are left entirely to their schema descriptions.

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 ('Extract a sample pack (one-shots and loops) from a track'), which immediately separates it from siblings like segment, stem_split, or generate_midi that also take a track as input.

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?

Explicitly names the when ('Use when the user wants drum hits or loops taken from a finished track') and then routes between the two modes: analysis_id reuses an existing analysis with no upload and no extra run, while file_path launches the full `sample-pack` pipeline as one counted run. It also names pipeline_status as the recovery path if the call times out.

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