Skip to main content
Glama

create_midi_clip

Creates an empty MIDI clip in an empty clip slot on a specified MIDI track, with optional name and length in beats (4 beats = 1 bar in 4/4).

Instructions

Create an empty MIDI clip in an empty clip slot of a MIDI track. Length is in beats (4 beats = 1 bar in 4/4).

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": {
      "track": "<track>",
      "slot": "<slot>"
    },
    "name": "create_midi_clip"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
slotYes
trackYes
length_beatsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and openWorld=false, so the safety profile is covered. The description contributes the non-obvious precondition about empty slots, but it does not say what happens when the slot is occupied or that the resulting clip is empty and requires a separate write_notes call.

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?

Two short sentences, front-loaded with the core action and then the unit clarification; no filler. Slightly under-specified rather than padded.

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

Completeness3/5

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

With no output schema, the description should say what a successful call yields (a new clip reference, an id, or nothing), and it should mention that track and slot are indices. It covers the essential action and units but leaves those gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the burden; it usefully defines length_beats as beats with a bar conversion, but leaves track, slot (index base, range) and name completely unexplained. Partial compensation only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (create) and resource (an empty MIDI clip) and adds the precondition that the target slot is empty, which separates it from copy_clip and write_notes. It does not explicitly name a sibling, so it falls short of a 5.

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

Usage Guidelines3/5

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

The phrase 'in an empty clip slot' implies when the tool applies and is a real usage constraint, but there is no explicit routing to alternatives such as copy_clip (duplicating an existing clip) or write_notes (populating an existing clip).

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