Skip to main content
Glama
MuseScore MCP Server

MuseScore MCP Server

by ghchen99

Add Lyrics

add_lyrics

Add lyrics to consecutive notes from the current cursor position in MuseScore, skip rests, and use hyphens or underscore extenders to handle syllables and melismas.

Instructions

Add lyrics to consecutive notes starting from the current cursor position, one entry per note (rests are skipped). End a syllable with '-' to hyphenate it to the next one ("Hel-", "lo"). Use "_" (or "") for a note that continues the previous syllable: no lyric is placed there and the previous syllable gets an extender line over it, as MuseScore draws a melisma.

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": {
      "lyrics": "<lyrics>"
    },
    "name": "add_lyrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
verseNoVerse number (0-based, default is 0 for first verse)
lyricsYesOne entry per note, e.g. ["Hel-", "lo", "world", "_", "_"]: "-" hyphenates, "_" holds the previous syllable

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • changedInput schema / properties / lyrics / description
      Previous value: -"List of lyric syllables to add (e.g. [\"Hel\", \"lo\", \"world\"])"New value: +"One entry per note, e.g. [\"Hel-\", \"lo\", \"world\", \"_\", \"_\"]: \"-\" hyphenates, \"_\" holds the previous syllable"
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses that rests are skipped, that '_' places no lyric but draws an extender line over the previous syllable, and that this mimics MuseScore's melisma rendering. Gaps remain around failure modes (e.g. array longer than remaining notes) and whether the cursor advances after the call, which matters for a mutating tool with no output schema.

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 dense sentences, front-loaded with scope before the encoding rules, and every sentence contributes new information. No filler or restatement of the title.

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 two-parameter, non-destructive-looking score-edit tool with no output schema and no annotations, the description covers usage context, per-note cardinality, and the special character semantics. Only the return/effect behavior after the write and edge-case handling are left implicit.

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 both parameters are already documented, and the schema itself already states that '-' hyphenates and '_' holds the previous syllable. The description adds only marginal extra meaning (the melisma/extender-line rationale) and says nothing at all about the 'verse' parameter, so the baseline 3 fits.

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?

The description gives a specific verb and resource — 'Add lyrics to consecutive notes' — plus the anchor point ('starting from the current cursor position') and the cardinality rule ('one entry per note, rests are skipped'). That is enough to distinguish it from sibling text/marking tools like add_text or add_rehearsal_mark without opening any 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?

It establishes the precondition (a cursor position on notes) and the input-shape contract (one entry per note, rests skipped), which tells the agent when this tool applies. It does not name an alternative for single-note lyric entry or for placing free text, so there is no explicit when-not guidance.

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