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

io.github.AudialAI/audial-mcp

Official

Segment audio

segment

Detect song sections, tempo, bars, and structure from a mixed audio file. Returns section labels, BPM, key, time signature, and bar grid in one analysis run.

Instructions

Find song sections, tempo and bars (about half a minute).

Use for song structure. Send the mix: no stems needed, and it counts as one run. metadata.analysis is the analysis (format 5; every time in seconds): bpm, time_signature, key and camelot (null when no key was found), structure ("dance" or "song" section names), bar1 (the first downbeat), lead_in (the time before bar 1, or null), sections (label, start, end, start_bar, bars, fills: drum fill times) and a tempo map. Beats and bars are not listed one by one: grid describes them -- where each constant-tempo piece starts, its BPM, and its bar and beat. Every beat time is start + k * 60 / bpm, and most tracks have one piece. The analysis_id it returns adds audio_features, tag_audio, get_lyrics or generate_samples to this analysis without another run. For tempo and key alone, analyze is quicker.

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": {
      "file_path": "<file_path>"
    },
    "name": "segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
edmNotrue: dance section names (INTRO, UP, CHORUS, DOWN, OUTRO); false: song section names (INTRO, VERSE, UP, CHORUS, OUTRO). Default: from the genre, else from the audio.
genreNoGenre hint for the section names, e.g. 'Tech House', 'Pop' or 'Drum N Bass' (a name Audial does not know returns the list).
featuresNoOptional, kept for older integrations: also compute these in the same call (mode, energy, loudness, danceability, tatum, tags, lyrics). The call then waits for them, minutes for tags and lyrics. Simpler: audio_features, tag_audio or get_lyrics afterwards with the analysis_id.
file_pathYesFull path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded.

Output Schema

NameRequiredDescriptionDefault
toolYes
filesYes
summaryYes
metadataYes
output_dirYes
execution_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.7.0
    • removedInput schema / properties / analysis_type
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Analysis type accepted by Audial's segmentation.",
      -  "title": "Analysis Type"
      -}
    • removedInput schema / properties / components
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {
      -        "type": "string"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Components to analyze, e.g. ['vocals', 'drums'].",
      -  "title": "Components"
      -}
    • addedInput schema / properties / edm
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "true: dance section names (INTRO, UP, CHORUS, DOWN, OUTRO); false: song section names (INTRO, VERSE, UP, CHORUS, OUTRO). Default: from the genre, else from the audio.",
      +  "title": "Edm"
      +}
    • changedInput schema / properties / features / description
      Previous value: -"Features to compute per segment."New value: +"Optional, kept for older integrations: also compute these in the same call (mode, energy, loudness, danceability, tatum, tags, lyrics). The call then waits for them, minutes for tags and lyrics. Simpler: audio_features, tag_audio or get_lyrics afterwards with the analysis_id."
    • changedInput schema / properties / genre / description
      Previous value: -"Genre hint that improves section detection."New value: +"Genre hint for the section names, e.g. 'Tech House', 'Pop' or 'Drum N Bass' (a name Audial does not know returns the list)."
  2. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, openWorld=true, destructive=false), the description adds real operational context: roughly thirty seconds of runtime, that no stem separation is required, that the call is billed as one run, and that the returned analysis_id can be reused to avoid another run. Much of the remaining text explains the return payload, which the output schema already covers, so the net behavioral value is high but partly duplicated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is a well-placed summary, but the bulk of the paragraph is a dense backtick-heavy enumeration of output fields that largely restates the output schema. It is information-dense rather than rambling, yet a meaningful fraction of the text does not earn its place given the schema already exists.

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?

With annotations, a full input schema, and an output schema present, nothing an agent needs to call this correctly is missing: runtime expectations, input form, billing implication, and result-reuse path are all stated. The complexity of the tool is matched by the depth of the definition.

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% and each of the four parameters is already documented, so the schema carries most of the load. The description still adds genuine meaning about file_path — it accepts the full mix rather than stems — which is not stated in the schema, and it ties the edm/genre parameters to the section-name behavior described in the body.

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?

The opening sentence names a specific verb and resource ('Find song sections, tempo and bars') and even quantifies the output, so an agent knows exactly what it gets. It also explicitly demarcates itself from the sibling 'analyze' for the tempo/key-only case.

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?

States the primary use case ('Use for song structure'), the input expectation ('Send the mix: no stems needed'), the cost implication ('counts as one run'), and a named alternative with the condition that selects it ('For tempo and key alone, analyze is quicker'). When-to-use, when-to-substitute, and prerequisites are all present.

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