Skip to main content
Glama
MuseScore MCP Server

MuseScore MCP Server

by ghchen99

Processsequence

processSequence

Run an ordered sequence of MuseScore score commands in one call, stopping at the first invalid action while preserving earlier applied changes.

Instructions

Run several score commands in order in a single call. Each item is {"action": , "params": {...}}, using the same camelCase action names and parameters as the plugin (e.g. "addNote" with pitch, duration, advanceCursorAfterAction). Allowed actions: getScore, addNote, addTie, addTiedNote, addRest, addTuplet, appendMeasure, deleteSelection, getCursorInfo, goToMeasure, nextElement, prevElement, nextStaff, prevStaff, selectCurrentMeasure, insertMeasure, goToFinalMeasure, goToBeginningOfScore, setTimeSignature, addLyrics, addInstrument, setStaffMute, setInstrumentSound, setTempo, selectMeasures, deleteMeasures, setRepeatBarlines, addVolta, colorRange, setStyle, addRehearsalMark, removeParts, addHighlight, addLabel, clearHighlights, highlightNotes, highlightMarkings, highlightSymbols, setMeasureNumbering, numberAsPlayed, addText, removeAnnotations, addArticulation, removeArticulations, ghostNotes, beamOverRests, addSectionCounts. Measure ranges use startMeasure/endMeasure (1-based, inclusive) and startStaff/endStaff (0-based, endStaff exclusive). Processing stops at the first invalid action or failing step, and the error names it; the steps before it stay applied.

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": {
      "sequence": "<sequence>"
    },
    "name": "processSequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequenceYesOrdered list of actions, e.g. [{"action": "goToMeasure", "params": {"measure": 1}}, {"action": "addNote", "params": {"pitch": 60, "duration": {"numerator": 1, "denominator": 4}, "advanceCursorAfterAction": true}}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does real work: it discloses that processing is non-atomic ("the steps before it stay applied") and that the error names the failing step. That is exactly the kind of partial-failure semantics an agent needs before composing a long sequence. It does not disclose return values, permissions, or any sequence-length limits, which keeps it below a 5.

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

Conciseness3/5

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

The opening sentence and the closing failure-semantics sentence are well-placed and front-loaded. However, the middle is a 40-plus-item comma-separated enumeration of allowed actions that largely duplicates the anyOf/const structure already present in the schema, making the prose heavier than it needs to be.

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?

There is no output schema, and the description never explains what a call returns - notably unclear for a batch containing read-style actions like getScore or getCursorInfo, whose results presumably need to come back somehow. Combined with silence on sequence-length limits or rollback options, the definition is adequate to start a call but incomplete for an agent reasoning about its results.

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% and the single top-level parameter is documented inline, so the baseline would be 3. The description earns above baseline by adding conventions the schema does not encode: measure ranges use startMeasure/endMeasure which are 1-based and inclusive, while staff ranges use startStaff/endStaff which are 0-based with an exclusive end. That off-by-one guidance is the highest-value parameter detail for this tool.

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?

"Run several score commands in order in a single call" names a specific verb (run in order), a specific resource (score commands), and the batching scope. This clearly distinguishes it from the individual single-action siblings like add_note or go_to_measure, since an agent can tell this is the batch executor without opening the schema.

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

Usage Guidelines4/5

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

The description establishes the usage context implicitly but clearly: use this when multiple score actions need to run in one call, and the items use "the same camelCase action names and parameters as the plugin." It does not explicitly say when to prefer individual tools over batching, nor state any prerequisites (e.g. an active score/cursor), so it falls short of a full when/when-not statement.

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