Skip to main content
Glama

Preview lyric split

split_lyrics
Read-onlyIdempotent

Preview how text splits into one lyric per note for Japanese and English using the same rules as add_melody and set_lyrics, without modifying the project.

Instructions

Preview how text splits into one lyric per note, the same way add_melody and set_lyrics split it (Japanese: one mora each, ー becomes "+"; English: one word each, hyphenated syllables become "+"). Touches no project. Returns language, lyrics, count, warnings. / テキストが1音符ずつの歌詞にどう分割されるかを確認します(add_melody・ set_lyrics と同じ規則)。プロジェクトは変更しません。

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": {
      "text": "<text>"
    },
    "name": "split_lyrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesLyrics text, e.g. "きゃりーぱみゅぱみゅ" or "Hel-lo world". / 歌詞テキスト
languageNoLyric language: "auto" (default, detected), "ja" or "en". / 歌詞の言語(auto / ja / en)auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.0
    • addedInput schema / properties / language / description
      Added value: +"Lyric language: \"auto\" (default, detected), \"ja\" or \"en\". / 歌詞の言語(auto / ja / en)"
    • addedInput schema / properties / text / description
      Added value: +"Lyrics text, e.g. \"きゃりーぱみゅぱみゅ\" or \"Hel-lo world\". / 歌詞テキスト"
  2. Changed3 schema fields changedv0.4.0
    • removedInput schema / properties / language / title
      Removed value: -"Language"
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / title
      Removed value: -"split_lyricsArguments"
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes further: it spells out the actual transformation rules (Japanese one mora, ー becomes '+'; English one word, hyphenated syllables become '+') and confirms no project mutation. It also lists the return fields (language, lyrics, count, warnings), removing guesswork about the response.

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?

The English portion is two tight sentences with the core purpose front-loaded and the safety constraint second. The verbatim Japanese mirror doubles the length, which is functional for localization but makes the payload heavier than strictly necessary for an English-reading agent.

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?

There is no output schema, yet the description enumerates the returned fields and fully documents the per-language splitting behavior, so an agent can predict both inputs and outputs. Nothing material is left unexplained for a two-parameter preview tool.

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 baseline would be 3, but the description adds real meaning: it explains what the text parameter produces under each language rule, which is the core semantic of this tool. The language parameter's auto-detection is covered by the schema, so the description contributes mainly on the text side.

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 opens with a specific verb and outcome: 'Preview how text splits into one lyric per note', and immediately ties it to the sibling tools whose rules it mirrors (add_melody, set_lyrics). 'Touches no project' distinguishes it as a pure preview versus those mutating siblings.

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?

By naming add_melody and set_lyrics as sharing the same splitting rules, it implicitly routes the agent here to inspect a split before committing it, and 'Touches no project' confirms it is a safe dry run. It does not state an explicit exclusion ('do not use this to actually apply lyrics'), so the when-not side is only implied.

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