Commit message
commit_messageValidate and normalize Conventional Commit messages, returning structured results with validity, parsed data, and flags for type, length, or imperative-mood issues.
Instructions
Validate and normalize a Conventional Commit message (type(scope): subject). Returns { valid, normalized, errors, warnings, parsed } and flags type, length and imperative-mood issues.
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": {
"message": "<message>"
},
"name": "commit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The commit message to validate (first line is the header). | |
| allowedTypes | No | Commit types accepted by the project. | |
| requireScope | No | Whether a scope, e.g. (auth), is mandatory. | |
| maxSubjectLength | No | Maximum allowed length of the subject. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| errors | Yes | ||
| parsed | Yes | ||
| warnings | Yes | ||
| normalized | Yes |