Skip to main content
Glama

mcp_opendaw_note_stats

Get comprehensive statistics for MIDI note regions: note count, pitch range, velocity/duration stats, density, and pitch class histogram. Use to compare regions, identify register, and detect robotic programming.

Instructions

Get comprehensive statistics for notes in a region.

Returns a full statistical profile of the MIDI content:

  • Note count, pitch range (min/max/span)

  • Velocity statistics (min/max/mean/median/std)

  • Duration statistics (min/max/mean in beats)

  • Density (notes per beat)

  • Pitch class histogram (how often each of 12 pitch classes appears)

  • Most common pitches (top 5)

  • Time span (first note to last note end)

Useful for:

  • Analyzing imported MIDI before processing

  • Comparing regions (which has more notes, wider range)

  • Identifying register (is this bass, mid, or lead?)

  • Detecting programming issues (all same velocity = robotic)

  • Feeding data to arrangement decisions

unit_index: AU index. track_index: Note track index. region_index: Region (-1 = first region).

Returns statistics object.

Example: stats = note_stats(0, 0)

stats includes: note_count, pitch_range, velocity_stats, density, pitch_class_histogram

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unit_indexYes
track_indexYes
region_indexNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations provided, so description carries full burden. Describes returned data comprehensively but does not explicitly state it is read-only or disclose potential side effects. For a read-only analysis tool, this is adequate but not exceptional.

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?

Well-structured: concise summary, bullet list of statistics, practical use cases, parameter details, and example. Some repetition (e.g., 'statistics object' in multiple places) but overall efficient and front-loaded.

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 lack of annotations and presence of output schema, the description thoroughly covers purpose, returned data, parameter roles, and usage examples. Includes edge case for region_index default. No gaps for agent understanding.

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% (no descriptions in schema), but the description adds meaningful explanations for each parameter: 'unit_index: AU index', 'track_index: Note track index', 'region_index: Region (-1 = first region)'. Includes an example call.

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?

Uses specific verb 'Get comprehensive statistics' and resource 'notes in a region'. Clearly distinguishes from sibling analysis tools (e.g., audio analysis tools) by explicitly listing MIDI-specific statistics like pitch class histogram, velocity stats, etc.

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 a 'Useful for' section with concrete scenarios (analyzing imported MIDI, comparing regions, identifying register, detecting robotic velocities). While it doesn't explicitly state when not to use it, the use cases are clear and practical.

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-team/opendaw-mcp'

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