Check part writing, counterpoint and playability
theory_checkValidates music against theory rules: four-part writing, species counterpoint, instrument playability and voice-leading cost, returning each violation with its voices and rationale.
Instructions
Checks music against rules: four-part writing (parallel fifths and octaves, spacing, voice crossing), species counterpoint (species 1-5 against a cantus firmus), whether a bass, guitar or drum part is playable (range, stretch, limb conflicts, difficulty), and the voice-leading cost between two voicings. Violations come back as kind, voices, from_index, to_index and a rationale. Not for naming the harmony (use theory_analyze) or for looking up facts (use theory_lookup). Example: {"check": {"kind": "partWriting", "voicings": [["C3","G3","E4"],["D3","A3","F4"]], "chords": ["C","Dm"], "key": "C major"}}.
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": {
"check": "<check>"
},
"name": "theory_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | Yes | The check, an object with a 'kind' plus its fields: partWriting {voicings, chords, key}; species {cantus_firmus, counterpoint, species, key, counterpoint_above?}; playability {source, instrument, tempo_bpm?}; voiceLeading {from_voicing, to_voicing}. | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |