Skip to main content
Glama

generate_process

Destructive

Writes minimalist phase or additive process patterns into a Session clip, replacing existing notes and using specified MIDI pitches or source clip data.

Instructions

Write a minimalist process pattern into a Session clip (REPLACES existing notes).

  • mode='phase': Steve-Reich phasing — stack repeats copies shifted by shift beats.

  • mode='additive': Philip-Glass additive build-up — 1st note, 1st 2 notes, ..., up to steps (0=all). Build the motif from space/comma-separated MIDI pitches or read source_clip_index.

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_index": "<track_index>",
      "clip_index": "<clip_index>"
    },
    "name": "generate_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNophase
shiftNo
stepsNo
pitchesNo60 62 64 67 69
repeatsNo
velocityNo
clip_indexYes
note_lengthNo
track_indexYes
source_clip_indexNo

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description corroborates with 'REPLACES existing notes' — the agent knows exactly what is lost. That is the key behavioral risk disclosed. It does not clarify whether non-note clip properties, loops, or automation on the clip survive, and there is no mention of permissions or failure conditions.

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 destructive warning and core purpose are front-loaded in the first line, followed by two tight mode bullets with no filler. It is compact for a 10-parameter tool, though the bullets describe modes rather than mapping cleanly to each parameter.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the destructive annotation plus 'REPLACES existing notes' covers the mutation risk. Remaining ambiguity is minor: precedence between pitches and source_clip_index, and which of shift/repeats versus steps apply when the other mode is selected.

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

Parameters5/5

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

Schema coverage is 0%, so the description must carry the load and largely does: mode's two enum values are defined behaviorally, repeats/shift are tied to the phase mode, steps is tied to additive mode including the 0=all convention, pitches is given a concrete format ('space/comma-separated MIDI'), and source_clip_index is explained as an alternative motif source. velocity, note_length, clip_index, and track_index remain undocumented, but the ambiguous and non-obvious parameters are all covered.

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?

The description opens with a specific verb and resource: 'Write a minimalist process pattern into a Session clip', and immediately parenthesizes the destructive effect. Two named compositional modes (Steve Reich phasing, Philip Glass additive) make the tool's specialty clear. It stops short of naming nearest siblings such as generate_melody, so differentiation is by domain knowledge rather than explicit routing.

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?

It explains which mode to pick and what each produces, which is genuine selection guidance between the tool's two behaviors. It gives no context on when to use this tool rather than the other generators, nor any exclusions or prerequisites (e.g., whether the target clip must already exist).

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