CWR validation (CWR 2.1 or 2.2 file check)
validate_cwrCWR validation: checks the text of a CWR 2.1 or 2.2 (Common Works Registration) file, against the version it declares. CWR registers songs with societies such as The MLC, PRS for Music / ICE, SACEM or CMRRA. Returns whether the file is valid, error and warning counts, and each issue with its line, rule, plain-language explanation and how to fix it. Pass the file content as ASCII text, up to 256 KB; larger files can be uploaded at https://trackforge.studio/cwr-tool. Validation does not guarantee acceptance by a society. The file is not stored.
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": {
"cwr_text": "<cwr_text>"
},
"name": "validate_cwr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwr_text | Yes | The full CWR file content (ASCII text, HDR to TRL). | |
| filename | No | Optional original filename, e.g. CW260001TF_000.V21. A society receiver code in the name selects that society's rules. | |
| recipient_profile | No | Which society's rules to apply; cisac_base when unsure. | cisac_base |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issues | Yes | ||
| stored | No | ||
| is_valid | Yes | ||
| error_count | Yes | ||
| full_report | Yes | ||
| issues_total | Yes | ||
| record_count | Yes | ||
| spec_version | Yes | ||
| warning_count | Yes | ||
| issues_truncated | Yes | ||
| recipient_profile | Yes | ||
| status_dimensions | No | ||
| transaction_count | Yes | ||
| recipient_resolution | Yes | ||
| line_endings_converted | Yes |