Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Clear Pattern

pattern_clear
Destructive

Removes all notes and step-sequencer hits from a 1-based pattern while preserving the pattern slot, useful for emptying an entire pattern across all channels.

Instructions

Remove all notes and step-sequencer hits from a 1-based pattern while keeping the pattern slot (FL Studio 2026+).

Use to empty an entire pattern across all channels; use piano_roll_clear or channel_clear_step_sequence to erase only one channel. Undoable via project_undo. Older FL builds return ok=False; builds that show a modal confirmation dialog return pending_confirmation=True until the user responds in FL Studio.

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": {
      "index": "<index>"
    },
    "name": "pattern_clear"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYes1-based pattern index to wipe clean of all notes and step-sequencer hits.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.1
    • addedInput schema / properties / index / description
      Added value: +"1-based pattern index to wipe clean of all notes and step-sequencer hits."
  2. First observedv0.6.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and non-idempotence, and the description adds material context beyond them: the pattern slot survives, the action is undoable, it requires FL Studio 2026+, older builds return ok=False, and modal builds return pending_confirmation=True until the user acts. These are exactly the runtime behaviors an agent must anticipate before calling a destructive tool.

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

Conciseness5/5

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

Three tight sentences: the core action and its scope first, alternative routing second, and version/confirmation caveats last. No filler, and the most consequential information is 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?

For a one-parameter destructive tool with a rich annotation set and an output schema, the definition covers everything an agent needs: what is destroyed, what is preserved, recoverability, environment requirements, and return-signal edge cases.

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 coverage is 100%, so the 'index' parameter is already fully documented as a 1-based pattern index. The description reinforces the 1-based convention and the slot-preservation effect but adds no syntax or validation detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Remove all notes and step-sequencer hits from a 1-based pattern') plus the crucial scope detail that the pattern slot is preserved. It immediately distinguishes itself from pattern_delete and the per-channel erase siblings named later.

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?

Explicitly gives the when-to-use case (empty an entire pattern across all channels) and names two alternatives with the condition that selects them ('to erase only one channel'). It also routes the agent to project_undo for reversal, leaving nothing to inference.

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

Deploy Server

Other Tools