Skip to main content
Glama
FL Studio MCP (fLMCP)

FL Studio MCP (fLMCP)

Count Patterns

pattern_count
Read-onlyIdempotent

Count non-empty or named FL Studio patterns and report the highest populated index for a quick inventory check.

Instructions

Count non-empty or named FL Studio patterns and report the highest populated index.

Use for a lightweight count check; use pattern_list when you need each pattern's 1-based index, name, color, and step length, or pattern_current for the active selection. Read-only; raises a tool error if the bridge is offline.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pattern_count"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds real operational context beyond that: it discloses that a tool error is raised when the bridge is offline, and clarifies what population is counted (non-empty or named patterns) vs. the highest populated index. It stops short of saying whether the count spans all patterns or a filtered subset, which is the one remaining behavioral ambiguity.

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 sentences, front-loaded with the core purpose, then routing guidance, then the failure mode. Every sentence carries distinct information and nothing repeats the schema or annotations verbatim.

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?

A zero-parameter, read-only count tool with full annotation coverage and an output schema — the description supplies purpose, alternatives, and the one operational failure case. Nothing an agent needs in order to call it correctly is missing.

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?

The tool takes zero parameters, which sets the baseline at 4. The phrase 'non-empty or named' could be read as an implicit two-mode distinction, but since no parameter exists to select a mode, it functions as a description of what is counted rather than a parameter contract — correct not to invent one.

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 ('Count non-empty or named FL Studio patterns') plus the key output ('report the highest populated index'), which is more than the title 'Count Patterns' conveys. It is immediately distinguishable from pattern_list and pattern_current, which are named explicitly.

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?

Gives an explicit when-to-use ('lightweight count check') and names two alternatives with the exact conditions that select them: pattern_list for per-pattern index/name/color/step length, pattern_current for the active selection. No inference is required.

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