Skip to main content
Glama

Select a pattern

fl_pattern_select
Idempotent

Select an existing FL Studio pattern by its 1-based index to make it current; invalid indexes are rejected, and the previous pattern can be restored in one rollback step.

Instructions

Make a pattern the current one (index must exist -- FL silently clamps out-of-range jumps, so we reject them). One rollback step: restores the previously selected pattern. Reports prev_index / prev_name.

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": "fl_pattern_select"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexYes1-based pattern index.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description adds meaningful behavior beyond them: the existence check, the out-of-range rejection policy, and notably that rollback covers only one step and restores the previously selected pattern. This is real operational context an agent could not derive from the annotations alone.

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?

Three compact sentences with the core action front-loaded and the constraint and rollback semantics following in dependency order. The parenthetical about clamping is slightly dense but earns its place by justifying the rejection behavior.

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?

For a single-parameter tool with an output schema, this is nearly complete: it covers the operation, the validation rule, the single-step rollback limit, and what is reported back (prev_index/prev_name). The only gap is not pointing the agent at how to obtain a valid index, which is a minor omission.

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 coverage is 100%, so the single 'index' parameter is already documented as a 1-based integer with minimum 1. The description adds meaning beyond that by explaining that out-of-range indices are rejected rather than clamped, which informs how the agent should validate input before calling.

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: 'Make a pattern the current one,' which unambiguously identifies a selection operation distinct from sibling tools like fl_pattern_list, fl_pattern_rename, or fl_pattern_get_length. It does not explicitly name a sibling alternative, but the action is clear enough that an agent would not confuse it with listing or renaming.

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 states a prerequisite condition ('index must exist') and explains the validation stance ('FL silently clamps out-of-range jumps, so we reject them'), which helps an agent anticipate errors. However, there is no explicit guidance on when to choose this over alternatives, such as calling fl_pattern_list first to discover a valid index.

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