Skip to main content
Glama

mcp_opendaw_analyze_song_structure

Read-only

Analyze MIDI song structure by segmenting bars into intro, verse, chorus, bridge, outro, and breakdown. Identify section changes and verify song form.

Instructions

Analyze song structure by segmenting MIDI content into structural parts.

Scans all note tracks bar-by-bar, computes per-bar features (note density, pitch range, average velocity, active track count), groups consecutive bars into segments, and classifies each segment as intro/verse/chorus/bridge/ outro/breakdown based on density and energy patterns.

Essential for: understanding existing arrangements, finding where sections change, verifying song form, and planning variations or extensions.

unit_index: AU index (-1 = all AUs). bars_per_segment: Minimum bars per structural segment (default 4). Groups of bars with similar density are merged into segments of at least this length.

Returns per-segment classification with bar range, density, energy, and feature summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unit_indexNo
bars_per_segmentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations declare readOnlyHint=true, and the description consistently presents this as a read-only analysis operation, so no contradiction. It adds behavioral detail beyond the annotation: the algorithm (scans bar-by-bar, computes features, groups consecutive bars, classifies segments) and the output structure (per-segment classification with bar range, density, energy, feature summary). This is useful context, though it could also mention edge cases or data requirements.

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?

The description is well-structured with a clear opening, algorithmic overview, use-case list, and parameter breakdown. It is somewhat long (multiple paragraphs), but each section adds value and the information is front-loaded. A tighter version could combine the algorithm and use cases, but the current format is readable and effective.

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?

Given the tool's moderate complexity and presence of an output schema, the description is complete: it explains what it does, the algorithm, the parameters, the output type, and typical use cases. It does not need to describe return values in detail because an output schema exists. The description fully equips an agent to decide when and how to call this tool.

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 description coverage is 0%, so the description must carry the burden. It does: 'unit_index: AU index (-1 = all AUs)' and 'bars_per_segment: Minimum bars per structural segment (default 4)...' This adds meaning beyond the plain integer types and defaults in the schema. It could be richer (e.g., valid ranges for unit_index) but is adequate.

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 description clearly states a specific verb+resource: 'Analyze song structure by segmenting MIDI content into structural parts.' It details the method (bar-by-bar feature extraction, grouping, classification into intro/verse/chorus/etc.), and distinguishes from siblings by focusing on analysis and structural segmentation, not creation or editing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit use cases: 'Essential for: understanding existing arrangements, finding where sections change, verifying song form, and planning variations or extensions.' This gives clear context on when to use. However, it does not mention when NOT to use it or contrast with alternative analysis/creation tools, so it misses the 'when-not' part for a full 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ameobius-ai/opendaw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server