validate_commit_message
Validate a commit message against configured rules including title length, conventional commit format, required scope, imperative mood, capitalization, and no trailing period.
Instructions
Validate a commit message against configured rules.
Checks:
Title length (max characters)
Conventional commit format (if configured)
Required scope (if configured)
Imperative mood (e.g., "Add" not "Added")
Title capitalization
No trailing period
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": "validate_commit_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repoPath | No | Path to the git repository. IMPORTANT: Always pass the user's current project/workspace directory. | |
| message | Yes | The commit message to validate |