validate_commit_message
Check a commit message against commit-check rules and get pass/fail status with per-check details including errors and suggestions.
Instructions
Validate a commit message against commit-check rules. Read-only validation. Returns a structured result with overall status ('pass'/'fail') and a list of per-check results. Each check includes the check name, status, value, error message (on failure), and suggestion (on failure).
Use this tool when you have a specific commit message string to validate. For batch validation of message, branch, and author together, use validate_commit_context instead.
Parameters:
message (required): The commit message text to validate.
config (optional): Inline JSON config overrides on top of any loaded config file.
repo_path (optional): Path to the git repository for repo-relative config loading.
config_path (optional): Path to a custom commit-check TOML config file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| message | Yes | ||
| repo_path | No | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||